Hearts card game with HTML5
Switch branches/tags
Nothing to show
Clone or download
yyjhao Merge pull request #6 from MrJithil/optimizations
fix: front and back variables local declaration missing
Latest commit 501fffd May 25, 2018
Permalink
Failed to load latest commit information.
img Initial upload Aug 18, 2013
js fix: front and back variables local declaration missing May 25, 2018
.gitignore ignore files Sep 8, 2013
LICENSE Add license Apr 16, 2016
README.md more todo Nov 14, 2013
index.html add github ribbon Nov 14, 2013
manifest.appcache update manifest Nov 14, 2013
style.css editing names and levels Nov 14, 2013

README.md

Hearts with HTML5

You can try the game at http://hearts.yjyao.com/

AI

The Ai.js class can use various Brains to make decision.

  • Brain.js: Base class for all brains
  • AsyncBrain.js: A wrapper to call the more time-consuming brains via web-worker
  • SimpleBrain.js: Simple greedy heuristics
  • McBrain.js: One-step look-ahead with sample generation and deterministic rollouts based on the assumption that all players use the simple greedy strategy
  • PomDPBrain.js: assuming all other players to be playing using the greedy strategy, the game can then be formulated as a POMDP and can thus be solved with the POMCP Algorithm. This brain implements the POMCP algorithm.

TODO

  1. Port McBrain and PomDPBrain to C++, which can be compiled to asm.js for better performance
  2. Multi-player support