Join us on Discord!
You can help CodeWalrus stay online by donating here.

Lua Chess for the Ti Nspire

Started by semiprocoder, September 10, 2015, 04:10:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dream of Omnimaga

That is cool. Have you set up the minimul API level properly, though? Because even if you don't use images, I think programs will still warn about outdated OS if the program's minimum API level is too high for the OS.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

semiprocoder

So I decided to look at my code again just cause I was bored, and I found a glitch where if you take anything with a pawn you get to move again, and I deleted the one line of code that caused that. Now it should be free of such glitches
  • Calculators owned: ti nspire, ti 84 plus se
My cemetech username is awesommee333.

Dream of Omnimaga

Awesome, I didn't realize there was this bug but I'm glad it's fixed now. Do you have plans for other Nspire/non-Nspire games? Maybe Checkers since those seems rare for calcs.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

calcplays

TI-Chess ( http://www.ticalc.org/archives/files/fileinfo/116/11606.html ) for the TI-89 has a CPU (which, according to the reviews, is somewhere between incredibly easy and impossible) and source code, along with puzzles and other features. Perhaps the 10th most downloaded file of ticalc.org's history might hold to the key to creating a CPU for your chess program on the TI Nspire (a calculator I do not have.) 

Dream of Omnimaga

  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

semiprocoder

I mean, it would take a while(but probably could be done) because its in c and its a really big game. I'll take a look at it though. I am a very inexperienced programmer though(not too many game/c programming courses for eight graders, although I do take c, but not graphical and I am still inexperienced) so don't promise anything at all.
  • Calculators owned: ti nspire, ti 84 plus se
My cemetech username is awesommee333.

Lionel Debroux

#21
TI-Chess is indeed by far the most popular TI-68k file on ticalc.org :)
IIRC, it used to rank higher, but the popularity of the TI-68k series has waned.

Using existing Lua chess engines as a starting point should be easier than using a C chess engine, though.
Also, the speed of an AI written in Lua won't be that great on the Nspire. Only native code would make the more advanced (3 and beyond) levels of the TI-Chess AI acceptably fast on the Nspire, whose raw power is quite a bit higher than that of the TI-68k series.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TIEmu and TILP.
Co-admin of TI-Planet.

Dream of Omnimaga

What about OS 3.6 Lua, though? Didn't speed improve significantly over OS 3.1, or was it only graphical-wise?
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Lionel Debroux

Only some graphical functions were made faster in OS 3.6, AFAICT. The Lua core hasn't changed.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TIEmu and TILP.
Co-admin of TI-Planet.

Adriweb

Eh, image handling changed massively in 3.6, with resources instead of inline strings :)

Other changes are minor for the handheld (for the iPad, there is now a touch library): https://wiki.inspired-lua.org/Changes_in_OS_3.6
  • Calculators owned: TI-Nspire CX CAS, TI-Nspire CX, TI-Nspire CAS (x3), TI-Nspire (x2), TI-Nspire CM-C CAS, TI-Nspire CAS+, TI-80, TI-82 Stats.fr, TI-82 Plus, TI-83 Plus, TI-83 Plus.fr USB, TI-84+, TI-84+ Pocket SE, TI-84+ C Silver Edition, TI-84 Plus CE, TI-89 Titanium, TI-86, TI-Voyage 200, TI-Collège Plus, TI-Collège Plus Solaire, 3 HP, some Casios
Co-founder & co-administrator of TI-Planet and Inspired-Lua

Dream of Omnimaga

I see. That said I guess it would not hurt to try. I doubt the speed can be anywhere close to as bad as 83+ basic. :P
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

semiprocoder

Someone else should probably do this(contest?) because I have never even wrote minimax(I know how it works though and I started but gave up). I would probably need more ai training before writing this.
  • Calculators owned: ti nspire, ti 84 plus se
My cemetech username is awesommee333.

Dream of Omnimaga

An AI co test would be nice, but unfortunately, CW Contest #2 (which starts soon) is something different. :P
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Powered by EzPortal