Skip to content

okabe-yuya/kotlin-minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💣 CUI-MineSweeper

About

Exercise: Minesweeper in 100 lines of clean Rubyを参考にRubyで実装されていたものをKotlinで実装した。

CUI上で実行されるシンプルなMineSweeperである。

2024-09-01.21.09.33.mov

Usage

以下のコマンドを実行するとアプリケーションが立ち上がる。
buildしておけば.jar形式にしたり、スクリプトファイルとして実行することも可能だと思われる。
(最終的にはネイティブコンパイルしてバリナリファイルを出力してlsコマンドのようにmsコマンドとしたい)

./gradlew run

ファイルを実行すると難易度の選択を求められる。
現在、対応しているのはeasy, normal, hardの3モードで、盤面のサイズと爆弾の数が増えていく。

実行例

-:::::::::::::::::::::::::::::::::::::::::::-
-:::::Welcome to terminal MineSweeper💣:::::-
-:::::::::::::::::::::::::::::::::::::::::::-

🔽 Select difficulty as 'easy(e), normal(n), hard(h) (default: normal(n))
e

▪▪▪▪▪
▪▪▪▪▪
▪▪▪▪▪
▪▪▪▪▪
▪▪▪▪▪

🔽 Type click coordinate as 'y, x' (1 based)>
1,1

▫▫▫▫▫
11▫▫▫
▪2121
▪▪▪▪▪
▪▪▪▪▪

About

💣 "MineSweeper" full scratch development by Kotlin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages