Noughts and Crosses (aka Tic Tac Toe) game implementation
Project description
Simple socket/console game implementation.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nac-0.1.0.tar.gz
(3.0 kB
view details)
File details
Details for the file nac-0.1.0.tar.gz
.
File metadata
- Download URL: nac-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8adc93907e8b17b5f9ae89cbbd64c0ba39a9c132eb95218e6180c330b481cd1 |
|
MD5 | da7488dabba61cd14d949acbdffbdc4d |
|
BLAKE2b-256 | cb767fc4717344861f8e99d651925fd0c2068ae6deff0185c165ba847b649676 |