An HTML5 version of the board game Yinsh written in Haskell / Haste.
sharkdp / yinsh Goto Github PK
View Code? Open in Web Editor NEWA web-based version of the board game Yinsh
Home Page: https://david-peter.de/yinsh
License: MIT License
A web-based version of the board game Yinsh
Home Page: https://david-peter.de/yinsh
License: MIT License
An HTML5 version of the board game Yinsh written in Haskell / Haste.
Apparently, there seems to be a bug where a ring (that has been clicked) cannot be moved. In such a situation, the click on the ring should not be allowed.
It seems like Haste is not maintained anymore. We should probably move the frontend code to GHCs new JavaScript backend.
Tracking a request that I got via email.
Hi David,
I played your beautiful implementation of Yinsh a few times and really enjoy it.
Sometimes I cannot catch what just happen and ability to view history is good.
However when I play on a cellphone (in most cases) there is no keyboard.
Would you mind making left and right words clickable to navigate the history in the message:
"You can use the left/right arrow keys to view the history of the game."
This will not affect the overall cleanness of the UI and will allow viewing history without keyboard.
Thanks,
Michael
Awesome implementation!
I'd love to see some kind of animation for when the AI plays its turn. Or even just an indicator of what the last AI turn was, (in case you miss it happening). Apologies if this is already in there, but on my machine (macbook with chrome on OSX 10.11.6), it happens way too fast to follow, particularly the captures.
Another way to approach it would be with a nice little "log" of all the turns, where you could click through the board state after each turn.
Anyway, nice job.
What is the version of hastec and ghc, that is required to compile this code? I am facing issues while trying to perform make
with the latest version of the compilers. I suspect it could be because I am using the wrong version.
Tracking a request that I got via email.
The http://haste-lang.org/ link from the readme points to a website that seems to have been bought by some fraudulent actors.
-- Initial yinsh-backend.cabal generated by cabal init. For further
-- documentation, see http://haskell.org/cabal/users-guide/
name: yinsh-backend
version: 0.1.0.0
synopsis: An HTML5 version of the board game Yinsh written in Haskell / Haste
-- description:
homepage: http://david-peter.de/yinsh/
license: MIT
author: sharkdp
maintainer: [email protected]
-- copyright:
category: Game
build-type: Simple
-- extra-source-files:
cabal-version: >=1.10
executable yinsh-backend
main-is: backend.hs
-- other-modules:
other-extensions: BangPatterns, FlexibleInstances, UndecidableInstances
build-depends: base >=4.7 && <4.8, containers >=0.5 && <0.6, game-tree >=0.1 && <0.2,
happstack-server
hs-source-dirs: src
default-language: Haskell2010
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.