gfcore
Go Fish card game engine for the ImperialBower project ecosystem.
Quick start — create a game, take a turn, inspect state:
use *;
let players = vec!;
let mut game = new?;
// Ask player 1 for Aces
let event = game.act?;
See cargo doc --open for the full API reference.
Interactive REPL
Play a quick game against three bots in your terminal:
=== Go Fish ===
You vs Harriet (smart), Bertram (smart), Lucky (random)
Draw pile: 24 cards
> You 7 cards 0 books
Harriet 7 cards 0 books
Bertram 7 cards 0 books
Lucky 7 cards 0 books
Your hand: K♦ Q♠ J♥ T♣ 8♥ 8♦ 6♠
Who do you want to ask?
[1] Harriet 7 cards 0 books
[2] Bertram 7 cards 0 books
[3] Lucky 7 cards 0 books
Target: 1
Rank? [K/Q/J/T/8/6]
Rank: 8
-> Harriet gives You 1 8.
Backstory
This is an experiment in using AI code generation to create a very simple mirror to my pkcore poker library for a different card game.