netcan / AnimalChess

Animal Fight Chess Game(斗兽棋) written in rust.
https://netcan.github.io/2020/06/07/%E7%94%A8Rust%E5%86%99%E4%B8%80%E4%B8%AA%E6%96%97%E5%85%BD%E6%A3%8B%E6%B8%B8%E6%88%8F/
MIT License
90 stars 11 forks source link

我对于编程是个小白 #10

Open ugvvff opened 1 year ago

ugvvff commented 1 year ago

这是我唯一一个找到使用深度学习的斗兽棋ai,但如何运行我还是不明白,能详细说说吗?

liulitchi commented 1 year ago

命令行 cargo run ,我在 Linux 上测试成功运行了。

ugvvff commented 1 year ago

我是win11系统

---原始邮件--- 发件人: "liu @.> 发送时间: 2023年4月23日(周日) 晚上6:40 收件人: @.>; 抄送: @.**@.>; 主题: Re: [netcan/AnimalChess] 我对于编程是个小白 (Issue #10)

命令行 cargo run ,我在 Linux 上测试成功运行了。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

ugvvff commented 1 year ago

我已经弄好linux系统,我不知道该如何运行,能说一下吗?

---原始邮件--- 发件人: "liu @.> 发送时间: 2023年4月23日(周日) 晚上6:40 收件人: @.>; 抄送: @.**@.>; 主题: Re: [netcan/AnimalChess] 我对于编程是个小白 (Issue #10)

命令行 cargo run ,我在 Linux 上测试成功运行了。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

netcan commented 1 year ago

我已经弄好linux系统,我不知道该如何运行,能说一下吗? ---原始邮件--- 发件人: "liu @.> 发送时间: 2023年4月23日(周日) 晚上6:40 收件人: @.>; 抄送: @.**@.>; 主题: Re: [netcan/AnimalChess] 我对于编程是个小白 (Issue #10) 命令行 cargo run ,我在 Linux 上测试成功运行了。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

linux比较简单,在项目根目录运行cargo run即可,win需要折腾,参考https://github.com/netcan/AnimalChess/issues/3

liulitchi commented 1 year ago

先安装 sdl2 的库文件。 debian/ubuntu 的是“libsdl2-dev” 和 “libsdl2-image-dev”, fedora 的是 “SDL2-devel” 和 “SDL2_image-devel“ 。

liulitchi commented 1 year ago

有一本 Packet 出版社的 “Rust programming by example”(不是官方链接的那本)。作者是 Guillaume Gomez 和 Antoni Bouncher。里面开头几章讲了用 sdl2-rs 做一个 俄罗斯方块,可以参考学习,唯一的缺点就是版本太老了。