Skip to content

silvesterjang/Chain4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

---

title: Chain 4
description: A game for 'ESCamp-2012 AI Competition'
author: Jaehyun Jang
tags: pygame, game, python
created: 2013 Jan 13
modified: 2013 Jan 31
---

Chain 4

This game has one objective which player can put one block or 2 block (if player use chance, each player has 2 chances.) his / her turn. If player select a row which he or she want to place, the block is placed at closest to wall with empty place.

(e.g OOOXXXX - row 2, O is not empty, X is empty.
if player select put(2)
OOOOXXX - row 2, O is not empty, X is empty.
)

if player make 4 blocks chained horizontally, vertically, or diagonally, that player wins.

Pygame is main module for running this game. if you did not install it, please visit "http://www.pygame.org/news.html" site and intall appropriate your os with python version.

This source code consists of server - client using socket. If you want to make own client, please refer original python source code.

How to run?

  1. server -> python server.py (port number)
  2. client -> client.py (address port number), if you edit your own heuristic, please edit 'ai.py' code.

About

A game for ESCamp2012 AI Competition

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages