Skip to content

A triangle minesweeper game in Rust.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE.Apache2
MIT
LICENSE.MIT
Notifications You must be signed in to change notification settings

crlf0710/charlesmine-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CharlesMine-rs

A triangle minesweeper game in Rust.

By porting the earlier C version i wrote years ago, I'm doing some early research into both how to write applications with Rust, and how to design a GUI toolkit in pure Rust. Currently the backend is Microsoft-technology oriented, so the program is Windows-only. Backends for other OSes might be coming next.

Screenshot

Screenshot 1

Installation

Make sure you're using Rust windows msvc toolchain and target. Run

cargo install --git https://github.com/crlf0710/charlesmine-rs

Theorically you can also build this with exactly the same command with windows gnu toolchain and target, however you'll need to get yourself windres.exe and put its directory in PATH. You can check your configuration with windres --version before you run cargo install to see whether the tool is available.

Libraries

The implementation is quite modular. Several libraries that developed along with it can be used independently. Check them out:

  • APIW-rs: Safe interfaces for Windows API. Window creation, message handling, GDI drawing, etc.
  • RESW-rs: Create executable resources (icons, menus, dialogs) from Rust code in build.rs.
  • concerto-rs: Small state machine that manages complex ui action details.
  • domino-rs: Rust application separation of concern (SoC) experiment. Organize code as MVC components and communiate using messages.

About

A triangle minesweeper game in Rust.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE.Apache2
MIT
LICENSE.MIT

Stars

Watchers

Forks

Packages

No packages published