This is simply Connect 4.

Features an artificial intelligence, which you can play against.
Multiplayer over USB is planned, though no ETA.

Source code can be found here: https://github.com/tqbunny/ti84pce-connect4
Downloads: https://github.com/tqbunny/ti84pce-connect4/releases

Screenshot:




Distributed under the MIT license.
It would be awesome if you uploaded this to the archives!
I don't have my calc, with me, but seems like it'l be good! Is it possible for 2 players on 1 calc?? (Player 1 finishes, then Player 2, etc.) One question, what is the gray shading in the screenshot?
SM84CE wrote:
I don't have my calc, with me, but seems like it'l be good! Is it possible for 2 players on 1 calc?? (Player 1 finishes, then Player 2, etc.) One question, what is the gray shading in the screenshot?

Gray shading corresponds to the selected column. I might chose a lighter color instead.
This is possible, yes. I might add this later.
Makes sense, I suggest, instead of shading the entire column, just draw an arrow pointing down. Might help with clarity?
SM84CE wrote:
Makes sense, I suggest, instead of shading the entire column, just draw an arrow pointing down. Might help with clarity?

Originally added because some people might not take attention to the cursor or might have issues with 2D spaces. Also helps not making mistakes when playing, in my opinion.
That does make sense. Is there win/ losing detection?
SM84CE wrote:
That does make sense. Is there win/ losing detection?

Yes, of course there is.
Cool!, what other things do you have going on?? I can only do TI-BASIC...
Cool! I wonder how good the AI is? Can you beat him/it? Keep up the great work! Smile
PT_ wrote:
Cool! I wonder how good the AI is? Can you beat him/it? Keep up the great work! Smile

The AI is not perfect and can be beaten relatively easily enough. To make it more difficult, the complex move simulation can be added more rounds, but this heavily slows down the AI, and can then take up to multiple minutes to play one move.
I hope the adaptation to assembly of some parts of the AI would help with that, considering the Zilog C compiler is not very good.
Connect 4 is a good start to learn programming an AI Wink

I also programmed my own simple version a few months ago, for z80 models (in Basic language)



I optimised my program then achieved 3 seconds for the TI to think (time on my TI-84 Pocket.fr)

If you are interested, here is the link : https://tiplanet.org/forum/archives_voir.php?id=869728
grosged wrote:
Connect 4 is a good start to learn programming an AI Wink

I also programmed my own simple version a few months ago, for z80 models (in Basic language)



I opimised my program then achieved 3 seconds for the TI to think (time on my TI-84 Pocket.fr)

If you are interested, here is the link : https://tiplanet.org/forum/archives_voir.php?id=869728

I will definitely take a look at this, thanks.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement