Giter Site home page Giter Site logo

skat's Introduction

Skat

By Robert B. Kaspar and Jake Kaspar

Usage

usage: ./skat_wrapper.py player1 player2 player3 n_rounds verbosity
  playeri: kenny or bob
  n_rounds: positive integer (preferably a multiple of 6)
  verbosity: silent, scores, or verbose

Example usage

$ ./skat_wrapper.py kenny kenny bob 6 verbose

Example output

ROUND 2:
[BIDS]   Kenny1 bids 18
         Kenny2 bids True
         Kenny1 bids False
         Bob    bids False
Kenny2 calls grand
[HANDS]  Kenny2: 7d 8d kd | 7s ks | 8h qh | 8c qc kc | 
         Kenny1: td ad | 8s 9s as | ah | 7c ac | js jc
         Bob   : 9d qd | qs ts | 7h 9h kh th |  | jd jh
[TRICKS] Kenny2 leads qh ah th --> Kenny1
         Kenny1 leads as qs ks --> Kenny1
         Kenny1 leads td qd kd --> Kenny1
         Kenny1 leads 7c jh 8c --> Bob   
         Bob    leads kh 8h js --> Kenny1
         Kenny1 leads ac 9h kc --> Kenny1
         Kenny1 leads 8s ts 7s --> Bob   
         Bob    leads jd qc jc --> Kenny1
         Kenny1 leads 9s 7h 7d --> Kenny1
         Kenny1 leads ad 9d 8d --> Kenny1
loses three quarters, loses everything!
Kenny2 scores -336

I guess Kenny's game could use a little work!

Analysis of KennyPlayer

Random play in such a complex game is punishing: in a match between three KennyPlayers, the average score is quite negative. The declarer loses most hands.

Interestingly, the Kenny who bids first scores 30% higher (well, less negative) on average, because Kenny's best "strategy" is not to bid at all (since a Kenny declarer usually loses). With the advantage of bidding first, even if Kenny doesn't pass immediately, there's a good chance one of the other players will bid, giving him another chance to pass.

Similarly, when one or more Kennys are replaced by SilentBob, who is identical to Kenny except that he refuses to bid, Kenny fares even worse: he has fewer other bidders to rely on to save him from his own disastrous bidding. Here are Kenny's average scores (100,000 games) as a function of the number of Bobs:

3 Kennys / 0 Bobs, -20.4 +/- 0.15
2 Kennys / 1 Bob,  -26.1 +/- 0.16
1 Kenny  / 2 Bobs, -34.3 +/- 0.18

skat's People

Contributors

chikinn avatar jrkaspar avatar

Stargazers

 avatar Rob avatar  avatar Gregor avatar Alex avatar aateg avatar Lutz Hühnken avatar Heiko Stamer avatar  avatar

Watchers

 avatar  avatar

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.