Jump to content
yashin

My first game for atari 2600 - Tic Tac Toe

Recommended Posts

Hello everyone! All my life I wanted to program the game for console. And just recently I discovered Batari Basic. Here's Tic Tac Toe. The music on the title screen is not suitable for this game, of course. But this is just my music experiment for Atari 2600. Switching left and right difficulty, you can turn off the music and blinking.

ttt_by_yashin.bas

ttt_by_yashin.bin

  • Like 2

Share this post


Link to post
Share on other sites

Did you know if the first person takes center square and the second player takes a side instead of a corner, the game is over? The first person just has to play it correctly.

 

 

  • Like 1

Share this post


Link to post
Share on other sites

I know that there are a few strategies. For examlpe, if the first person takes any corner of the square and second person does not take center, the game is over too. In AI I did not realize winning strategies, because then there will be a draw or computer win.If the player wins the next move, the computer will not allow it to make. If the computer will win the next move, then he will do it.
Sorry for my english, I'm from Russia.

Share this post


Link to post
Share on other sites

Welcome to AtariAge, and congratulations on getting your first game working.

I haven't tried it yet, but yes, Tic Tac Toe isn't exactly a super fun game, unless you're of a certain age/ability. It's a good game to start your programming with, though.

Share this post


Link to post
Share on other sites

Very impressive, especially for a first attempt! There really isn't a whole lot of "sacrifice"; the AI has enough intellect to work around the player a bit, the music is active and interesting, the number of options available is impressive, and even the use of the playfield seems fitting and not as ugly as is common with simple games made in batariBasic.

 

Great job! Really the only suggestions I'd have would be to add a titlescreen with RevEng's titlescreen kernel for the game selection and to tweak the AI routines a bit. At the moment, you're going over cycles for the playfield title screen and I had one time when the AI thought long enough that I got an unpleasant squeal in my ear from the 2600 going over cycles by so much, so breaking up the AI's thinking between frames a bit more is necessary.

Share this post


Link to post
Share on other sites

Thank you all for your comments.

 

Cybearg, I'll work on the delays in the calculation of the AI.

 

Byte Knight, what is a DPC+ and how to work with DCP+. May have some posts with examples?

 

And yet, how do random from 1 to 9 with equal probability?

Edited by yashin

Share this post


Link to post
Share on other sites

 

Byte Knight, what is a DPC+ and how to work with DCP+. May have some posts with examples?

 

DPC+ is the modified Pitfall II engine that lets you create high-res multi-colored sprites, high-res playfields, 10 on-screen sprites, and use up to 64k in memory. A full description can be found in Random Terrain's excellent batari basic manual here.

 

You can download the latest version here.

 

Just search this forum for DPC+ and you'll find code examples.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...