Skip to content

BluNuggets/corner-the-flags

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

220 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Review Assignment Due Date

Corner The Flags Game

This project has a Python client and a PureScript client. To start a game, connect two of either client to a server.

Caution

Neither client currently sends an initial message containing initial board dimensions and piece positions. Thus, clients that have different board states upon connecting to a room will not be able to sync with each other.

Python Client

The Python client's dependencies are managed using poetry.

# Installs dependencies (Poetry)
poetry install

Linting & Formatting

Before pushing a commit, you may want to run the ruff linter and formatter.

# Runs linter (Ruff)
poetry run ruff check

# Runs formatter (Ruff)
poetry run ruff format

Running Tests

The pytest framework is used to write and run tests. These tests may be executed by running:

# Executes tests (Pytest)
poetry run pytest

Purescript Client

Package management and building for the PureScript client are handled by spago.

# Installs dependencies (Spago)
spago install

A MakeFile is included to make building the PureScript easier.

# same as `spago bundle --outfile web/index.js`
make build

Note

The above commands must be run in their respective client's directory.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published