Coder Social home page Coder Social logo

mineblower's Introduction

MineBlower - by Niamh Brady

screenshot

mineblower's People

Contributors

pixelb avatar skysocket avatar

Watchers

 avatar

Forkers

pixelb

mineblower's Issues

screenshots would be really useful

It would be great to update README.md to display a screenshot

This would be useful for users, and also to see the result of corresponding code changes over time

Support themes

For example flowers and bees for flags and mines (Maybe with a yellow based colour).

Correctly flagged mines should be distinguished upon hitting a mine

Currrently when you hit a mine, all mines get a dark gray background.
It would be good to distinguish correctly flagged mines as follows:

diff --git a/Mine Blower.py b/Mine Blower.py
index fd8dd86..b1c5524 100644
--- a/Mine Blower.py    
+++ b/Mine Blower.py    
@@ -19,8 +19,11 @@ def square_to_widget(row, column):
 def square_open(r, c, text, auto=True):
     tk_square = square_to_widget(r, c)
     if text == death:
+        square_text = tk_square.cget("text")
         if auto == False:
             bg = "red"
+        elif warning in square_text:
+            bg = "light blue"
         else:
             bg = "#808080"
     else:

should support keyboard shortcuts

For increased flexibility and accessibility.
It would be good to use the same bindings as for minesweeper:

Arrow keys move the cursor one square at a time. Hit [Enter] to click, press 1 to flag and [Shift][Enter] to middle click (auto clear clicked numbers). It is also possible to use [Spacebar] to click, [Shift][Spacebar] to flag or middle click. In all versions [F2] starts a new game

fix determination of end of game

Currently if all no mine squares have been cleared the game finishes.
It should finish when all squares have been flagged or cleared.

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.