Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danluu/isotropic
Client/server code from an early version of isotropic
https://github.com/danluu/isotropic
Last synced: about 1 month ago
JSON representation
Client/server code from an early version of isotropic
- Host: GitHub
- URL: https://github.com/danluu/isotropic
- Owner: danluu
- License: apache-2.0
- Created: 2014-12-17T19:42:43.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-17T19:44:28.000Z (about 10 years ago)
- Last Synced: 2024-11-06T07:37:08.860Z (3 months ago)
- Language: Python
- Homepage: https://dominion.isotropic.org/
- Size: 129 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
Here's a very early version of the code that I pulled out of source
control, as I was just starting to implement the web interface. I've
ripped out the Dominion parts and replaced them with a lame little
"game" that you can see in net.py under the comment "# here we would
start the game".To set it up:
1. Download the closure library
(http://code.google.com/closure/library/) and put it somewhere that
it's served by your web server.2. Change the first tag in client.html to point to the copy
of closure that you've installed on your machine.3. Run "python3 net.py 2". The "2" is the number of players.
(There's no "lobby" in this code, it just starts a game as soon as
that number of clients connect.)4. Open two browser windows and point each to
http://localhost:9999/client.html (or if your browser's on a different
machine than you're running the game, the machine name instead of
"localhost"). They should connect and play the "game".------------------------------------------------------------------------
Text above that line is from Doug Z's original archive. Stuff below was
added by me (danluu). This code in this repo is all from Doug Z, with
the comment "it's in the public domain, do anything you like with it".I'm going to stick an apache license on this because I want that for
my modifications to this code anyway, but it's not really my code.