(评论)
(comments)

原始链接: https://news.ycombinator.com/item?id=43364776

一个Hacker News帖子讨论了一个用Rust编写并导出到WASM的跳棋游戏。用户最初报告了一些问题,例如游戏强制跳跃且不支持多步吃子,但这些问题后来被澄清为反映了标准跳棋规则,一些玩家对此并不熟悉。讨论还涉及到人们玩过的不同跳棋变体和规则。一位用户指出了GitHub上的源代码,供学习Rust并寻找示例项目的人使用。另一位用户分享了作者其他游戏的链接。一位用户遇到游戏死机的情况,但意识到他们需要进行强制跳跃。另一位用户遇到了一个bug,游戏中他们扮演的是对手。

相关文章
  • 用Rust编写的跳棋游戏,并导出为WASM格式。 2025-03-17
  • (评论) 2024-05-14
  • (评论) 2023-11-28
  • (评论) 2024-04-15
  • (评论) 2024-02-21

  • 原文
    Hacker News new | past | comments | ask | show | jobs | submit login
    Checkers written in Rust and exported to WASM (kevinalbs.com)
    44 points by keepamovin 6 hours ago | hide | past | favorite | 13 comments










    I was about to comment saying it was broken and forces you to jump. But it turns out I've just been playing checkers wrong my whole life.


    All checkers games I ever played started with a long negotiation about the rules...


    Exactly. I was surprised that this one doesn't support multi capture when available.


    It does, not sure what you're seeing. Maybe the second jump was in the reverse direction, and thus not legal?


    Does it not?


    There’s a lot of different checkers variants.


    Please rename to checke.rs :D




    Bunch of cool games are here: https://kevinalbs.com/#!games

    :)



    You got the src on github or something? Am learning rust myself and it seems like a neat little sample project


    it got locked after 10 moves or something like that (firefox browser). I couldn't move anything no matter where i clicked (and i was far from the end of the game)

    EDIT : sorry, seems like i probably had to make a forced jump move, which i didn't know was a thing.

    EDIT 2 : aren't you supposed to be able to capture in reverse direction ?



    For me it locked after 1 move. But then I found out that I was also playing for the opponent.


    checke(rs)






    Join us for AI Startup School this June 16-17 in San Francisco!


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



    Search:
    联系我们 contact @ memedata.com