Giter VIP home page Giter VIP logo

game_of_life_rust's Introduction

An implementation of "Conway's Game of Life" written in Rust.

▄ ▀▀ ▄▀▀▄ ▄▀▄ ▄ ▀ █▄▄ ▄ █▄ ▀ ▀ ▀▀█ ▄▄ ▄ ▀ ▀ ▀ ▀ ██ ▀▀ █ ▄▄▀█▄▀ █▄ ▀▀ ▄▄▄ █▄█ ▄█▀ ▄▀▄ ▄▀█ █ ██ ▄▀ ▄▀ █▄ ▀█▀█▀▀▀ ▀ ▄ ▀▀ ▄ ▄▀▀█▀ ▀▄ ▄ █ ▀ ▄▄▄ ▄█ ▀█ ▄█▀ ▄▀ ▄▄▄ ▀ ▀ ██ ▀▀ ▀▀ ▀▀ ▄ █ ▀▄▄ ▄ ▀▄ ▄ █▀ ▄ ▄ ▄██▀█ ▄▀ █ ▀▀ ▄ ▀▄ ▄█▀ ▄▄ ▀

This program should run a game of life simulation and display the "playground" in your terminal window every 100ms (see above)

How to use

with rustup installed go into the project folder and execute

$ cargo run --release

cargo should then

  • download needed dependencies
  • compile everything with optimizations ("--release")
  • run the program

Cargo's build command compiles the project and puts it into a target directory. The release version gets put into target/release, the normal version (without --release) is put into target/debug. Those binaries can be run directly as well.

Basic Rust usage

Cargo.toml is the package's configuration file. Here the name of the project, dependencies and build options are specified.

cargo is Rust's build system and package manager. Useful commands are

  • cargo check: perform basic compiler checks)
  • cargo build: compile the project - use --release for optimized release version
  • cargo run: compile project and execute it - --release also works here.

There exist numerous additional commands that can be installed as well.

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.