在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):MedeaMelana/Magic开源软件地址(OpenSource Url):https://github.com/MedeaMelana/Magic开源编程语言(OpenSource Language):Haskell 97.0%开源软件介绍(OpenSource Introduction):Magic: The Gathering in HaskellA Haskell implementation of the rules of Wizards of the Coast's Magic: The Gathering. This project has multiple goals:
ScopeMagic is a big game. This implementation targets only a specific part of it. For now, only two-player games and only cards, rules, card types and abilities available and relevant in the Magic 2013 core set are targeted. A good indication of the current progress is to open module M13 and see how many M13 cards have been implemented yet. A list of issues to be fixed before the whole of M13 can be implemented can be found on GitHub. There is also a command-line interface that allows you to play the game. To run it, follow the installation instructions below and run the executable that it produced by building Building with cabalYou need GHC 8.6.3 or greater and cabal-install 2.4.1 or greater to build Magic. Clone the repository:
Run the command-line interface:
Building with stackYou need the newest version of stack to build Magic. Clone the repository.
If you want to run the command-line:
If you want to run the web server:
Info for NixOS users: Please use the Talking to the web serverThe web server runs on websockets. Currently it starts a new game for every websocket connection that is opened, and that connection has full access to all the cards in the game. That is, there is no hidden information yet, and you can't have two clients play a game against each other yet: the connecting client controls all the players in the game. Messages to and from the server are in JSON format. There is no documentation yet about the exact form of these messages, partly because it still unstable and changes often. However, the JSON messages from the server should be reasonably clear and should contain everything you need to build a proper client. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论