Tic-Tac-Toe-Game

Description

:pencil2: Tic-tac-toe (or Noughts and crosses, Xs and Os) is a paper-and-pencil game for two players, X and O, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three respective marks in a horizontal, vertical, or diagonal row wins the game. Developed in Pharo Language : Smalltalk

Details

Source
GitHub
Dialect
pharo (25% confidence)
Forks
1
Created
March 16, 2015
Updated
Jan. 5, 2017

Categories

UI / Graphics Games System / OS

README excerpt

# TicTacToe Tutorial : Fun With Pharo

Tic-tac-toe (or Noughts and crosses, Xs and Os) is a paper-and-pencil game for two players, X and O, who take turns marking the spaces in a 3×3 grid. The player who succeeds in placing three respective marks in a horizontal, vertical, or diagonal row wins the game.

Because of the simplicity of Tic-tac-toe, it is often used as a pedagogical tool for teaching the concepts of good sportsmanship and the branch of artificial intelligence that deals with the searching of game trees. It is straightforward to write a computer program to play Tic-tac-toe perfectly, to enumerate the 765 essentially different positions (the state space complexity), or the 26,830 possible games up to rotations and reflections (the game tree complexity) on this space.

So , here we make a Pharo version of this well-known game by using Morph. This post provides a step-by-step approach on how to go about building this simple application.

* This tutorial has been included as a chapter in  [Fun With Pharo!](https://github.com/SquareBracketAssociates/FunWithPharo/tree/master/TicTacToe)
* Help appreciated to polish it more, it's still in its baby stage.

Read more about how to build it from scratch : [jigyasagrover.wordpress.com/tictactoe-tutorial-funwithpharo](https://jigyasagrover.wordpress.com/2015/04/06/tictactoe-tutorial-funwithpharo/)
← Back to results