CodeWalrus

Development => Calculators => Calc Projects, Programming & Tutorials => Topic started by: grosged on March 13, 2017, 09:53:34 pm

Title: Connect4 for TI z80 models ,programmed in TI-Basic, AI included
Post by: grosged on March 13, 2017, 09:53:34 pm
Hello there!
This time I propose you Connect4 (https://tiplanet.org/forum/archives_voir.php?id=869728)  I programmed this afternoon.

(https://tiplanet.org/modules/archives/captures/1489482276Connect4.png)

It's written in TI-Basic and include an AI, yes you'll have to play against the TI !
I've optimised the program in order not to be sooooo slooooow (I achieved 3 seconds for the TI to think & play)
Will you succeed ?..
Have fun  ;D

EDIT: the game has been renamed "Connect4" & now contains english sentences ;)
Title: Re: Puissance4 (4in-a-row) for TI z80 models ,programmed in TI-Basic, IA included
Post by: xlibman on March 13, 2017, 09:57:14 pm
I was surprised since you normally don't do TI-BASIC. This looks nice and polished for ASCII homescreen. By the way, in English the official name for this game is Connect Four, I think. :)
Title: Re: Connect4 for TI z80 models ,programmed in TI-Basic, AI included
Post by: grosged on March 13, 2017, 10:00:05 pm
ah, thanks ! I 've just modified ;)
Title: Re: Puissance4 (Connect4) for TI z80 models ,programmed in TI-Basic, AI included
Post by: p2 on March 13, 2017, 10:11:51 pm
an english language pack (or language menu) would me awesome ;D
but I agree the UI looks really lovely ^^
did u have to chose between a genius and a fast AI in the game, or is it still a good one but still fast enough? ^^
Seen many games where the AI had to be made more stupid again because the speed killed the game :/
Title: Re: Connect4 for TI z80 models ,programmed in TI-Basic, AI included
Post by: grosged on March 14, 2017, 09:18:35 am
Update : Now in english , also renamed Connect4 :)

(http://img4.hostingpics.net/pics/483160Connect4.png)
Title: Re: Puissance4 (Connect4) for TI z80 models ,programmed in TI-Basic, AI included
Post by: p2 on March 14, 2017, 09:19:20 am
nice ^^
But is it only in english now, or with a language menu? :)
Title: Re: Connect4 for TI z80 models ,programmed in TI-Basic, AI included
Post by: grosged on March 14, 2017, 10:35:43 am
English only  :)
As today I noticed that ElseIfThen (member of Tiplanet too) had already posted his program named..."Puissance4" just a few days before my program, I decided to rename mine into "Connect4" in order to avoid any confusion ...& also translated the few sentences in english ;)