Skip to content

oliang2000/impressionbaby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Impression Baby

alt text

Project Description

This is a single-player game inspired by BS poker, where you play with Baby (a reinforcement machine learning algorithm) who learns your strategy over the course of the game.

Inspiration

We wanted to make the opponent "smart", forcing the player to change strategies over the rounds in this simple game.

Rules

  • 2 players: you and Baby
  • Each player gets 3 cards randomly from the whole deck of cards, you only know your own 3 cards.
  • You enter a guess, which includes a quantity between 1 and 6 and a value between 1 and 13 or a suit (e.g. 3 9’s, 2 Spades)
  • Baby enters true or false (BS)
  • If Baby correctly judged that your guess is included/not included in the 6 cards, it gets 6-x points.
  • If not, you get x points.

alt text

How to play

Dependencies

pip install keras-rl2
Pip install h5py
pip install gym
pip3 install -U pyxel

Run

  • UI with Pyxel
python3 GameUI.py
  • Command line
python3 BS_Poker.py

What's next

  • More complex game rules (claim could include flush, full house, etc)
  • Each round Baby gets to return a higher claim instead of simply saying True or False

About

A retro-style single-player bluffing game inspired by BS Poker and powered by Pyxel, where you face off against Baby — a reinforcement learning agent that adapts to your strategy as the game unfolds.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages