Git Product home page Git Product logo

twenty48's Introduction

Build Status

twenty48

By Manny Jois

Text based 2048 implemented using Rust and ncurses.

Instructions

If you'd like to play, read these instructions on how to install Rust. Then clone this repo and inside it run cargo build to build and target/twenty48 to run.

twenty48's People

Watchers

 avatar

twenty48's Issues

It can't be compiled

Compiling libc v0.1.1
Running rustc /Users/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.1.1/rust/src/liblibc/lib.rs --crate-name libc --crate-type lib -g --cfg feature="default" --cfg feature="cargo-build" -C metadata=6b537f2898b2a028 -C extra-filename=-6b537f2898b2a028 --out-dir /Users/xxx/Documents/workbench/workspace-rust/twenty48/target/debug/deps --emit=dep-info,link -L dependency=/Users/xxx/Documents/workbench/workspace-rust/twenty48/target/debug/deps -L dependency=/Users/xxx/Documents/workbench/workspace-rust/twenty48/target/debug/deps -Awarnings
/Users/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.1.1/rust/src/liblibc/lib.rs:79:46: 79:51 error: expected ident, found "std"
/Users/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.1.1/rust/src/liblibc/lib.rs:79 #[cfg(feature = "cargo-build")] extern crate "std" as core;
^~~~~
/Users/xxx/.cargo/git/checkouts/ncurses-rs-19e4d6676c1c76f9/master/src/ncurses.rs:1601:27: 1601:30 error: illegal suffix us for numeric literal
/Users/xxx/.cargo/git/checkouts/ncurses-rs-19e4d6676c1c76f9/master/src/ncurses.rs:1601 { NCURSES_BITS(((1u32) << 8us) - 1u32, 0u32) as i32 }
^~~
/Users/xxx/.cargo/git/checkouts/ncurses-rs-19e4d6676c1c76f9/master/src/ncurses.rs:1601:27: 1601:30 help: the suffix must be one of the integral types (u32, isize, etc)
error: aborting due to previous error
Build failed, waiting for other jobs to finish...
/Users/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/log-0.2.2/src/lib.rs:570:5: 572:6 error: method deref has an incompatible type for trait: expected bound lifetime parameter 'a, found concrete lifetime [E0053]
/Users/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/log-0.2.2/src/lib.rs:570 fn deref(&self) -> &Box {
/Users/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/log-0.2.2/src/lib.rs:571 unsafe { mem::transmute(self.0) }
/Users/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/log-0.2.2/src/lib.rs:572 }
error: aborting due to previous error
Could not compile libc.

Caused by:
Process didn't exit successfully: rustc /Users/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.1.1/rust/src/liblibc/lib.rs --crate-name libc --crate-type lib -g --cfg feature="default" --cfg feature="cargo-build" -C metadata=6b537f2898b2a028 -C extra-filename=-6b537f2898b2a028 --out-dir /Users/xxx/Documents/workbench/workspace-rust/twenty48/target/debug/deps --emit=dep-info,link -L dependency=/Users/xxx/Documents/workbench/workspace-rust/twenty48/target/debug/deps -L dependency=/Users/xxx/Documents/workbench/workspace-rust/twenty48/target/debug/deps -Awarnings (exit code: 101)

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.