Skip to content

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Functional Texas Hold'em 🃏

Demo Video
GitHub Repository

🎯 Description

Functional Texas Hold’em is a command-line poker game built in OCaml. Players compete in turn-based rounds against simulated bot opponents with simple strategies based on hand strength. The game handles all core poker mechanics, including:

  • Card dealing
  • Hand evaluation
  • Turn-based betting
  • Winner determination

Built as part of a larger effort to explore functional programming, this project emphasizes clean architecture, immutability, and modular design using OCaml.

🛠 Features

  • Terminal-based user interface with clear prompts and game flow
  • AI-controlled opponents with basic probabilistic decision-making
  • Modular OCaml architecture for maintainability and testing
  • 80%+ test coverage using OUnit for game logic and functionality

🚀 How to Run

No installation necessary beyond OCaml and dune.

Clone the repo and run the game using dune:

dune exec bin/main.exe

📚 Tech Stack

  • Language: OCaml
  • Build System: Dune
  • Testing Framework: OUnit
  • Architecture: Functional, Modular, Test-Driven

🤝 Contributors

  • Yoseph Endawoke (ye38)
  • Fadi Ismail (fmi4)
  • Timothy Adeyemi (ota4)

📚 Cornell University | INFO 4300: Language & Information

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages