Skip to content

This is the first "game" I made when I learned to program back in 2019, it's basically Tic-Tac-Toe (X/O) written in Pascal.

Notifications You must be signed in to change notification settings

Touami-M/TicTacToe_Pascal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

TicTacToe_Pascal

This is the first "game" I made when I learned to program back in 2019, it's basically Tic-Tac-Toe (X/O) written in Pascal. If you decide to play against the computer then the game is practically unbeatable in hard mode (except for one scenario I forgot to fix), there is also easy mode in which the computer places its marker randomly, as well as a PvP mode.

The only thing impressive about the code is how long and overly complicated it is; the game board is seen as a 3x3 matrix and I basically went through every possible case you can come across in the game and hard-coded it using If/Else, this means the computer is smart enough to block you if it is about to lose or might even try to pull some tricks like using the "triangle strategy". The in-game text is in French and the code is written in Pascal so good luck trying to run it!

About

This is the first "game" I made when I learned to program back in 2019, it's basically Tic-Tac-Toe (X/O) written in Pascal.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages