Giter VIP home page Giter VIP logo

spielviz's Introduction

SpielViz

SpielViz is an interactive viewer for OpenSpiel games.

It is based on xdot.py, a GraphViz's viewer in Python.

Beware that you might not be able to display some games with large branching factor and tree lookahead (like Go).

Screenshot of SpielViz on the game of kuhn_poker(players=4)

Run as:

pip install -e .
python -m spielviz

TODOs

PRs are welcome! Feel free to open an issue and state you'd like to contribute. I will be working on this project probably very sporadically.

  • Make a warning when building a large graph, show only a subset.
  • Show information about the pyspiel.Game.
  • Use customizable Observer to show observations in the games.
  • Use keyboard to move withing the Graph (acejump-style).
  • Add custom game views (state view components) -- down_class python bindings for specific games.
  • Show mapping to public / private trees.
  • Create a CLI interface that jumps to specific positions in games.
  • Add a GUI history.
  • Add a game transformation to OpenSpiel that acts as an action factorization so that we can show games with large branching factor nicely.
  • Add game parameter autocompletion.
  • Make graph presentation more nice -- label sizes, edge expansion location, colors, shapes, highlights, etc.
  • Add support for bots, showing probabilities of movements / other stats.
  • Create a snap package and publish in Ubuntu repo.

Features

  • Arbitrary loading of games (and game transformations).
  • Jump to specific history.
  • Shows detailed information about pyspiel.State.
  • Since it doesn't use bitmaps it is fast and has a small memory footprint.
  • Arbitrary zoom.
  • Keyboard/mouse navigation.
  • Highlights node/edge under mouse.

Install

See INSTALL.md for details.

Versioning

We use Semantic Versioning, but no version has been released yet - the code is under pure development phase for now.

spielviz's People

Contributors

michalsustr avatar jrfonseca avatar pfalcon avatar zedthree avatar stebalien avatar timovwb avatar tacertain avatar l0kod avatar gmt4 avatar iamahuman avatar ludwigme avatar owenbrno avatar city-busz avatar bredelings avatar krillegh avatar dfandrich avatar dovf avatar emilienkofman avatar htgoebel avatar jwilk avatar liujed avatar coroa avatar p2004a avatar mk-fg avatar owst avatar stefanor avatar tbennun avatar ehooo 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.