Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Noughts and Crosses (aka Tic Tac Toe) game implementation

Project description

Simple socket/console game implementation.

https://travis-ci.org/tkoomzaaskz/noughts-and-crosses.png?branch=master https://badge.fury.io/py/nac.svg

dependencies & installation

Works under python version: 2.6, 2.7. No additional dependencies. Install package with pip:

$ pip install nac

overview

This repository holds a python package implementing a simple socket game, Noughts and Crosses.

First you shall run the server, and then the client:

$ ./nac/server.py
$ ./nac/client.py

You will see the game board represented by few console lines:

(0)|(1)|(2)
---+---+---
(3)|(4)|(5)
---+---+---
(6)|(7)|(8)

Enter the position you want to put your mark:

Your move: 0

 X |(1)|(2)
---+---+---
(3)|(4)|(5)
---+---+---
(6)|(7)|(8)

The server is ‘X’ and the client is ‘O’.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nac, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size nac-0.1.0.tar.gz (3.0 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page