Giter VIP home page Giter VIP logo

yinsh's Introduction

yinsh's People

Contributors

sharkdp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

yinsh's Issues

Rings that cannot be moved

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.

Resurrect the frontend code

It seems like Haste is not maintained anymore. We should probably move the frontend code to GHCs new JavaScript backend.

View history of the game without keyboard

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

seeing opponent's moves

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.

Version of Haste Compiler

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.

Cabal file backup

-- 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

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.