Giter Site home page Giter Site logo

rummi's Introduction

Rummi

Simple CLI implementation of the card game Rummi. Primarily an exercise in applying object-oriented programming.

Rummi Demo

Motivation

I play this game often with friends, and I always lose. So, developing this game was a way to train so I can one day win. :)

Skills and Concepts Learned

  • Classes and OOP
  • Unit testing
  • Why we use if __name__ == '__main__':
  • Using the debugger in VSCode
  • Appreciating 'flat is better than nested'
  • Naming variables, functions, and classes effectively is important but difficult
  • Refactoring code can speed up debugging and improve readability
  • Using OBStudio for display capture, then converting to GIF with convertio.co

Future Work

  • Add 'AI' to play against
  • Use probability to optimize decision making at each turn (i.e., should a card be drawn from the deck? the discard pile? the whole discard pile?)
  • Add GUI with Pygame

rummi's People

Contributors

rjweis avatar

Watchers

 avatar

rummi's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.