Skip to content

COMP90054/sequence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game Interface

The idea is to design a framework that can integrate different turn based multiplayer games.

Guide

The python version supported is python 3.6+. All required classes and methods to implement a new game are defined in the template.py

Only additional import required is the func_timeout module. Install with: pip3 install func_timeout

There are three give general agents that will work with any game under directory agent/staff_team_random: first_move.py, random.py and timeout.py.

Usage

The game can be run with specified runner. The only difference between runner is the first two line of the code (importing different game files.) The options can be found with following command:

python .\azul_runner.py -h

If running Sequence, note that the game will start in fullscreen mode. Press F11 to toggle fullscreen. The game's activity log now appears as a separate window.

Feature

  • save the print as log
  • save replay
  • play saved replay file
  • run multiple games in sequential

Current Games:

  • Azul
  • Reversi (No GUI)
  • Sequence

Limitation

In order for students to import their customized python file, they will have to add their team name into the path. For example:

import agents.staff_team_random.timeout

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages