Code Monkey home page Code Monkey logo

cg-accountant-game's Introduction

License Build Status Code Coverage

Introduction

This is a program that simulate the behaviour of The Accountant game from Codingame website.

Compile

The project is instrumented with Cargo. To build it, you need Cargo and Rust installed. Then you can launch the following command.

cargo build

Run

To run the program, launch the following command.

cargo run

Note that it will a specific configuration. You may change it in src/main.rs near the beginning of the main function.

Once launched, the game is expecting you to type one of the 2 following commands:

  • SHOOT <enemy_id>
  • MOVE <x> <y>

Library

This project has implemented all of the logic of the game as a library (see src/lib.rs).

Most of the code has been tested. You may run the test with the following command.

cargo test

Benchmarks are also available through the following command.

cargo bench

Linting

By default, the code is automatically linted through the clippy plugin when you build the project. However, you may want to run the linting by yourself. Install the Cargo plugin for clippy with the following command.

cargo install clippy

Then you should be able to run the following command to lint the code.

cargo clippy

cg-accountant-game's People

Contributors

woshilapin avatar

Watchers

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