• Stars
    star
    16
  • Rank 1,269,461 (Top 26 %)
  • Language
    Zig
  • License
    MIT License
  • Created about 5 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Minesweeper game written in curses with zig

curses-minesweeper

This is a minesweeper game written with Zig using curses.

screenshot

If you have apt, you can install most of the dependencies and download the code like this:

$ sudo apt install git wget libncurses5-dev libncursesw5-dev gcc
$ git clone https://github.com/Akuli/curses-minesweeper
$ cd curses-minesweeper
$ git submodule init
$ git submodule update

Then download zig 0.9.0 and move it to the curses-minesweeper directory, and run this:

$ tar xf zig-linux-SOMETHING.tar.xz         (use autocompletion)
$ mv zig-linux-SOMETHING zig                (use autocompletion)

Now you can compile and run the project.

$ zig/zig build

Run the game:

$ zig-out/bin/cursesminesweeper

Add --help for more options.

FAQ

I can't get it to work!

Create an issue. I'll try to help.

Why did you write a minesweeper game?

Because it's fun.

Does it work on Windows?

No, but Windows comes with a minesweeper. Windows command prompt and powershell are kind of awful anyway, and you probably want to use GUI applications instead of them whenever possible.

More Repositories

1

python-tutorial

A Python 3 programming tutorial for beginners.
Python
1,275
star
2

porcupine

A decent editor written in tkinter
Python
139
star
3

tkinter-tutorial

Tkinter tutorial for beginners.
Python
114
star
4

teek

Simpler alternative to tkinter.
Python
31
star
5

math-tutorial

Practical math tutorial for programmers.
Python
25
star
6

jou

Yet another programming language
Python
11
star
7

mantaray

An IRC client written in Python with Tkinter.
Python
9
star
8

git-guide

A practical guide to using git with github that hopefully doesn't suck.
Mako
7
star
9

classtree

A program that prints a tree of classes in a Python module.
Python
6
star
10

odotdot

Funny programming language
C
6
star
11

asda

My attempt at making a statically typed programming language
Python
5
star
12

import-that

Bad Python practice tutorial.
5
star
13

oomph

Yet another attempt at making a usable programming language
Python
4
star
14

py-tree-sitter-builds

Binary wheels for using py-tree-sitter without a C compiler
Python
4
star
15

derivater

Simple symbolic calculation library for Python
Python
3
star
16

math-derivations

Derivations and proofs of math things
Python
3
star
17

BananaGUI

Simple wrapper for popular Python GUI toolkits.
Python
3
star
18

music-theory

A website that explains music theory using mathematics (Finnish)
Python
2
star
19

triotk

Tiny module for using Trio with Tkinter
Python
2
star
20

curses-klondike

Terminal klondike solitaire game
C++
2
star
21

stupid-c-repl

Stupid REPL for C and C++
Python
2
star
22

weird-language

weird programming language
Python
1
star
23

the-simple-noteprogram

Simple note-taking program written in Python 3 with GTK+ 3.
Python
1
star
24

mathpaste-gtk

Gtk program for using mathpaste
Python
1
star
25

happy-birthday

Happy birthday zaab :)
Python
1
star
26

snake

My version of the classic snake game. It's not as boring as you think it is...
Python
1
star
27

mittari

Analog CPU and RAM usage meters for my computer
Python
1
star
28

gtk-reminder

Simple reminding program written in C using GTK+ 3.
C
1
star
29

potti

IRC bot that lets users run arbitrary Python code
Python
1
star
30

catris

The classic game of falling blocks, for multiplayer with netcat
Rust
1
star