Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is similar to something my room mate is working on: https://github.com/thejoshwolfe/board-gamer-2d

The user can create a JSON string that represents a game (checkers, solitare, dominion, smash up, etc). Then the engine creates cards, tokens, dice, etc. It does not enforce rules but it supports multi player and some rules about visibility to other players. Its intended use case is for testing out new games or expansions before printing them.

It's a little bit early in the project though, so you'd have to run it from source if you want a demo.



This is what I've been wanting to make since I first learned about programming 3 years ago. So much effort goes onto enforcing rules, when really, all you need is the virtual pieces.


This is actually something you can do with Tabletop Simulator on steam, as I'm using it for that exact purpose. It even uses JSON as the underlying data structure. Granted, it's proprietary and not free.


My room mate tried to use that and he said it was garbage. The thing that I remember was having to type file paths manually, but there was a bunch of other specific and egregious problems he pointed out. Beyond that though, 3D brings nothing to the table; it's just a gimmick.


proprietary. not free. not standard web tech for use in browser. requires a DRM (with bittorrent client) spyware to be always running.

yeah, not even close i would say.

but the use of JSON is nice.


Hm, cool! My company just started on a Javascript board game engine where the server & client can share the same .js file for rules, and all logic for the game is encoded into the pieces (fat models) instead of controllers, allowing for easy customization and mods.

https://github.com/QuantumProductions/tic-tac-toe


Had the same idea but I also have a hundred others to distract me, so thanks for the heads up. I'll keep an eye on it.


This seems to be all static html, why doesn't he just turn the branch into a github page?


It is a github page, it's hosted on github.io. The branch is https://github.com/pakastin/deck-of-cards/tree/gh-pages


There's a node server required too, to coordinate the multiple connected clients.


you can still run a demo off github pages without the multiplayer.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: