17-07-2014, 09:59 AM
PUZZLE GAME :-
TIC-TAC-TOE
PUZZLE GAME -.pptx (Size: 213.5 KB / Downloads: 12)
Introduction
One of the things that always interested me is Artificial Intelligence. I never had a chance to learn anything about it, but now the time has come.
I recently bought the book Artificial Intelligence: A Modern Approach which I’ll start reading during my flight to the USA.
In this blog series, I’d like to document the development of a simple tic-tac-toe program. Once finished, I’ll release the source code on GitHub.
[b]Objective:-
Open Source Game: TicTacToe Ver 1.00
Finally got ver 1.00 of my first game - T[/b]
Finally got ver 1.00 of my first game - TicTacToe completed. As usual, it's a NIB-less design. I have put everything in one "main.m" but it shouldn't be too difficult for you to split into separate files if required.Link to full source code listed below, I tried to make the code looks tidy and put in as many comments as possible within limited time. Drop me some comments on the blog or email me if you need any further info.Well, actually the 2 players mode has been fully working for a few days. It's just that in the single player mode, computer player wasn't "smart" enough until now.
Features:-
1)Basic opponent AI
2)Simple interface
3)Nice graphics
4)Funny sound effects
5)Easy to alter the graphics and sounds
6)Runs in landscape or portrait orientations (as of 2011.04 version)
7)Released as Open Source software (source-code available)