Skip to content

Latest commit

 

History

History
45 lines (37 loc) · 856 Bytes

README.md

File metadata and controls

45 lines (37 loc) · 856 Bytes

Usage

An implementation of Love Letter (Board Game) with a text-based interface.
See also: Game Introduction

Game Senarios

In this implementation, the human player plays against three agents. As shown below, p0 is the human player, while p1-3 are the agents.

[Game info] Round:5. Turn to Player 3
        p2:X
p1:Δ            p3:O
        p0:O
  • p0:O // alive
  • p1:Δ // protected by Handmaid
  • p2:X // dead

Build

with CMake

$ git clone https://github.com/liu-chien/LoveLetter-BoardGame.git
$ cd LoveLetter-BoardGame
$ mkdir build && cd build
$ cmake ..
$ cmake --build .

Run

Execute game

$ ./LoveLetter-BoardGame

Unittest

$ mkdir build && cd build
$ cmake .. -DTEST=ON
$ cmake --build .
$ ./unittest

Tested environments

  • Ubuntu 20.04