Giter Club home page Giter Club logo

pazaak's Introduction

pazaak

What is pazaak ?

Pazaak is a game similar to blackjack that was originally a mini-game for the Star Wars: KOTOR series of videogames.

It is played 1v1, with players taking turns drawing cards ranging from 1 to 10, trying to get the closest to 20 without going over. Each turn, a player may play a modifier card (+2, -4, ...) from his hand to alter the total. A game is played as best-of-5 (3 winning), and the hand cards are dealt only once at the start of the match.

More information on pazaak

What's in this repository ?

Image files

There are various apps available, but there are no official physical versions of pazaak cards. I created image files depicting the card fronts and backs, faithful to the KOTOR look & feel, which you can use as resources. These are available in the Releases section.

I am not affiliated to BioWare / LucasArts in any way and am only distributing these in an attempt to spread the pazaak love. If this represents a legal issue I will remove them.

Command-line game engine

You will find a CLI game engine that can run games and enforce rules.

You can plug bot agents, or possibly human interfaces (untested).

This is useful to simulate many games in a monte-carlo fashion, to analyze the value of modifier cards (+2, -4, +-3, ...). It may also be used as a basis to develop bot players. A naive but functional implementation is provided in testagent/.

To run:

$ cd pazaakcli
$ go build
$ cd testagent
$ go build
$ cd ..
# stdin line1 = side deck for player 1
# stdin line2 = side deck for player 2
$ ./pazaakcli -player ./testagent/testagent -player ./testagent/testagent <<EOF
auto
auto
EOF

Statistical analysis

The conclusions drawn from analysis conducted using the command-line engine will be provided in the form of a report file.

See side_deck_card_rank.txt for a rough early analysis of side deck card value. More to come.

pazaak's People

Contributors

loopfz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mithreas

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.