Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   Share Worlds (http://www.alice.org/community/forumdisplay.php?f=6)
-   -   Tic-Tac-Toe! (http://www.alice.org/community/showthread.php?t=3548)

Dameria 12-07-2009 02:53 PM

Tic-Tac-Toe!
 
1 Attachment(s)
I got the idea from another user about 2 days ago to make a tic-tac-toe game, and I have just now finished it fully! I am very proud of this game I created because as far as I know there are no flaws. This includes no multiple wins, no playing after someone won, and so on. It even surprisingly works on both Alice 2.2 and Alice 2.0!

So here it is. I even have a few ideas for a Tic-Tac-Toe 2.0 (hey that rhymes!), in which more things will be added.

Please tell me what you think about the game, tell me if there is anything I missed, or maybe some ideas for 2.0, thanks!

[b]Download Tic-Tac-Toe 2.0 below for the latest and best version.[/b]
[i]I have taken the first version of Tic-Tac-Toe off because it has been getting more views than version 2.0 just because it is the first in the list. I do not want this to happen, so I have moved the version 1 download to the post where I originally introduced version 2.0, just in case you do want to download it.

If you do not understand how I programmed this, please see my explanation post here:
[url]http://www.alice.org/community/showthread.php?p=56924[/url][/i]

x2495iiii 12-07-2009 05:41 PM

Well Done! The only thing I could think of to add would be a cat's game notification. Good stuff!

Dameria 12-07-2009 05:51 PM

Thanks! But whats a cat's game notification?

I was thinking of adding these things into Tic-Tac-Toe 2.0:[LIST][*]An option at the end to play the game again, where it would reset everything back to default places and you could play again.[*]A scoring board telling which player has how many wins.[*]A box showing who's turn it is.[*]A method that would run at the start of every new game randomly picking the first player to start (and the players would know who is first from the "Player's Turn" box).[*]The colors of the X's or O's that the person won by will flash from red to black.[/LIST]
Do you think this is good so far? Should I make more things to add in, or should I just take out one of my ideas that I am planning to put in?

x2495iiii 12-07-2009 06:31 PM

A cat's game is a tie, where nobody wins.

And those ideas sound great, go ahead and add them all.

Dameria 12-09-2009 10:39 AM

Progress
 
Over the next week or so I am going to be working on Tic-Tac-Toe 2.0. I will be posting my progress here and I will edit this post whenever I finish a certain part of the game. Here is the progress on the game:
[LIST][*]A cat's game (tie) message. [b][COLOR="Green"]DONE[/COLOR][/b][*]An option at the end to play the game again, where it would reset everything back to default places and you could play again. [b][COLOR="Green"]DONE[/COLOR][/b][*]A scoring board telling which player has how many wins. [b][COLOR="Green"]DONE[/COLOR][/b][*]A box showing who's turn it is. [b][COLOR="Green"]DONE[/COLOR][/b][*]A method that would run at the start of every new game randomly picking the first player to start (and the players would know who is first from the "Player's Turn" box). [b][COLOR="Green"]DONE[/COLOR][/b][*]The colors of the X's or O's that the person won by will flash from red to black. [b][COLOR="Green"]DONE[/COLOR][/b][*]An option to enter the names of the people playing the game that would appear on the scoreboard. [b][COLOR="Green"]DONE[/COLOR][/b][/LIST]
When I am done with everything, I will post Tic-Tac-Toe 2.0. Until then feel free to download version 1 and try it. If you have any more ideas for version 2.0 or comments please reply to this thread. Thanks

Dameria 12-09-2009 03:43 PM

2 Attachment(s)
After working for about 5 hours today on this, I have finally created Tic-Tac-Toe 2.0!!! It has all of the add-ins listed in the above post, and I really hope that you enjoy it.

PLEASE tell me what you think by leaving a comment, I have worked very hard on this game, and although it was challenging at some times, I eventually got it all to work.

The only real thing that I want to change but cannot, is the number of wins text. When you get a win, instead of displaying "1", it displays "1.0", and so on. I cannot find how to turn this variable into an integer instead of a double. Other than that, everything else should work great. Tell me what you think!

[i]I will also provide the version 1 here for whoever wants to see it, but if you are just looking to play the game version 2 is much better.[/i]

x2495iiii 12-09-2009 05:32 PM

At the moment, it's impossible, unless you use a nested if/else if statement for each number and set the text directly to each number instead of the variable as a string (not worth it, in my opinion).

Nice job on the game! The work you put into it shows, good stuff!

Dameria 12-09-2009 06:03 PM

Thanks, I tried to make it as fun as possible, and I learned a lot while making some of my methods, and also used what I have learned to perfect them and make them run to the best of their ability.

rockstar442 12-09-2009 06:07 PM

hey i enjoyed it

dubastot 12-09-2009 06:10 PM

Another incredible world by Dameria. Suddenly I feel like I haven't made anything good for quite a while (probably because of school).


All times are GMT -5. The time now is 04:00 AM.

Copyright ©2024, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.