Giter VIP home page Giter VIP logo

bytecode-logo-graphics's Introduction

Stack-based WASM Shenzhen solitaire

This is a fork of another repo of mine which is being made largely on a lark.

What follows is the README for the repo linked above.

Stack-based WASM Shenzhen solitaire

This is a fork of my own non-stack-based version of the same game. You are most likely to be more interested in the other one since this one exists just for my own practice at expressing solitaire games in a stack-based style since I plan to do so in another project.

What follows is the README for the version linked above, so the playable version link is for that version. Note though the licensing that the license applies to both versions.

WASM Shenzhen solitaire

This is a port of Hunter X's pico-8 version of Zachtronic's Shenzhen Solitaire.

Playable version

Right here.

Use z, x, and the arrow keys to play. If you win, you can press Enter to deal another game.

Building (using Rust's native WebAssembly backend)

  1. Install newest nightly Rust:

    $ curl https://sh.rustup.rs -sSf | sh
    
  2. Install WebAssembly target:

    $ rustup target add wasm32-unknown-unknown
    
  3. Install cargo-web:

    $ cargo install -f cargo-web
    
  4. Build it:

    $ cargo web start --target wasm32-unknown-unknown --release
    
  5. Visit http://localhost:8000 with your browser.

Building for other backends

Replace --target-webasm with --target wasm32-unknown-emscripten or --target asmjs-unknown-emscripten if you want to build it using another backend. You will also have to install the corresponding targets with rustup - wasm32-unknown-emscripten and asmjs-unknown-emscripten respectively.


licensed under Apache, MIT and CC BY-NC-SA 4.0.

bytecode-logo-graphics's People

Contributors

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