Skip to content

Creating the ultimate Cluedo player

Notifications You must be signed in to change notification settings

FilippoPisello/cluedo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code style: black Python 3.9+

Cluedo game solver

Project Goal

Cluedo is a popular board game. The object of the game is to determine who murdered the game's victim, where and which weapon was used. Each player attempts to deduce the correct answer by strategically moving around a game board and collecting clues about the circumstances of the murder from the other players.

The aim of the project is to create the perfect Cluedo player, who extracts all the possible information from the ongoing game, delivering the solution as soon as it is logically possible.

The initial idea is to realize an algorithm which can be fed up with the events of the game in the simplest way possible, making its way towards the solution.

Python-wise, this project is a way for me to explore the object-oriented programming which I rarely use while performing data analysis.

Usage

How to run the code

To run the code you should download the entire content of the repository in a folder. Then you can run the following command from the command line:

python Cluedo.py

The idea is that a player should register what happens in a real game with this script. The program will then eventually tell the player what is the solution of the game.

Required packages

No external library is required to run this code.

Ideas for future improvements

Some ideas for improvements are:

  • Creation of a GUI
  • Implementation of a log/save/load mechanism

About

Creating the ultimate Cluedo player

Topics

Resources

Stars

Watchers

Forks

Languages