GithubHelp home page GithubHelp logo

fuhaoliang-pebbles-game's Introduction

cargo new --lib pebbles-game 

cargo new --lib io

游戏规则:

  1. 玩家:游戏有两个玩家:

    • 用户:即你,真人玩家。
    • 程序:电脑对手。
  2. 初始设置

    • 游戏开始时有 ( N ) 个石子。示例中,( N ) 为 15。
  3. 游戏玩法

    • 第一个玩家随机选择。
    • 在每个玩家的回合,他们必须从总数中移除 1 到 ( K ) 个石子。例如,如果 ( K ) 为 2,则玩家每次可以移除 1 或 2 个石子。
  4. 获胜条件

    • 拿到最后一个(或多个)石子的玩家获胜。

参考文档 https://docs.gear.rs/gstd/index.html https://wiki.gear-tech.io/docs/examples/Gaming/rock-paper-scissors

Project Structure

pebbles-game ├── io │ ├── src │ │ └── lib.rs │ └── Cargo.toml ├── src │ └── lib.rs ├── tests │ └── basic.rs ├── Cargo.lock ├── Cargo.toml └── build.rs

fuhaoliang-pebbles-game's People

Contributors

fuhao009 avatar

Watchers

 avatar

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.