Skip to content
ichabod801 edited this page Apr 28, 2020 · 8 revisions

T_games is a package of old-school text games, including classic computer games like Hunt the Wumpus and Hamurabi, classic tabletop games like Chess, Liar's Dice, Hearts, and Blackjack, and a variety of Solitaire games like Klondike, FreeCell, and Spider. It also provides a framework for writing text games in Python, with classes for boards, cards, and dice.

Part of the t_games philosophy is to be as accessible as possible. To that end, t_games uses only built-in packages, and supports versions 2.7 and 3.0+.

Features:

  • Unified command oriented interface
  • Menu interface for browsing/selecting games
  • Unified statistics (wins, scores, turns)
  • Statistics can be filtered by categories and game options
  • Multiple options for most games (an average of five options per game)
  • Complete rules, credits, and options list for all games
  • RPN Calculator for in game calculations
  • User settable short cuts
  • Open source (GPLv3+)
  • Automatically detects games added to the system by the user. For info on adding games to the interface, please see Game Objects.
  • Provides a framework for game design with classes for boards, cards, dice, games, game options, and players.
  • Allows for tournaments between AI 'bots' for each game.

Current complete game list:

  • Backgammon
  • Battleships
  • Bisley
  • Blackjack
  • Calvin Cards
  • Canfield
  • Chess
  • Connect Four
  • Craps
  • Crazy Eights
  • Cribbage
  • Forty Thieves
  • FreeCell
  • Gargantua
  • Gin Rummy
  • Global Thermonuclear War
  • Hamurabi
  • Hangman
  • Hearts
  • Hunt the Wumpus
  • Klondike
  • Liar's Dice
  • Mate
  • Monte Carlo
  • Ninety-Nine
  • Number Guessing Game
  • Oregon Trail
  • Pig
  • Prisoner's Dilemma
  • Pyramid
  • Quadrille
  • Rock-Paper-Scissors
  • Roulette
  • Slider Puzzle
  • Slot Machines
  • Snakes and Ladders
  • Solitaire Dice
  • Spider
  • Strategy
  • Ten Thousand
  • The Dollar Game
  • Thoughtful Solitaire
  • Yacht
  • Yukon

The code count after version 0.50.149a1 is 33,567 lines of code, 19,707 lines of comments, and 8,433 blank lines. If you wish to contribute to the repository, please read Development Process.

Clone this wiki locally