Skip to content

Latest commit

 

History

History
97 lines (63 loc) · 2.09 KB

README.md

File metadata and controls

97 lines (63 loc) · 2.09 KB

Whale

Build Status codecov Go Report Card

Whale is a fun simple card game for 2 to 4 players, you have reached the TUI version.

curent status

The game is in development and works with small limitations :

Bonuses are not fully implemented yet :

  • missing choice of player for human bonuses (take by default first available player)
  • bots never play bonuses

gif overview

whaleGame

rules

The goal is to get 5 water jet above your whale.

To add a water jet above your whale you need to play cards.

~ + || discard a wave card (~) and put a water card (||) above you : +1 water

≈ + || discard a doubleWave card (~) and put a water card (||) above you : +1 water

≈ + || + || discard a doubleWave card (~) and put two water cards (||) above your whale : +2 water

Game Steps :

  1. Distribute 3 cards to each player
  2. Choose the player to begin
  3. Player plays or skip if he can't
  4. Player draws a card
  5. Player discards if he has more than 5 cards
  6. If Player reach five water jet's he wins and ends the game
  7. Next player plays continue from 3

release

Prebuilt release binaries are available :

  1. Download tar.gz
  2. Unzip the file
  3. Run whale :
./whale

releases

build

go build -o whaleGame main.go

run

from binary

./whaleGame

from source

go run main.go

tests

go test -v ./...

lint

This project uses golangci-lint as a linter which can be found here https://golangci-lint.run/

golangci-lint run ./...

Roadmap

  • split package to make it a lib
  • improve coverage
  • fix asciinema to suport utf8
  • implement missing bonuses features
  • implement a web version using view-js