Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minesweeper #875

Merged
merged 35 commits into from
Jan 9, 2025
Merged

Minesweeper #875

merged 35 commits into from
Jan 9, 2025

Conversation

jadeandtea
Copy link
Collaborator

@jadeandtea jadeandtea commented Jan 8, 2025

Continuation merge from #871

Description

Completing the implementation of the Minesweeper puzzle type:

  • Created three new direct rules and one new contradiction rule
  • Fixed the old direct rule and the contradiction and case rules
  • Created new visuals for the rules and boards
  • Made nine minesweeper boards to play on
  • Added tests for each of the rules
  • Fixed various bugs
  • Changed naming to be consistent within Minesweeper and other LEGUP games.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Enhancement (improvement to an already existing feature)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

All of the rules have test suites so they should work. I had other people play minesweeper and ran into no issues with the rules or anything else.

Checklist:

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (if applicable)
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

willyoung366 and others added 30 commits October 1, 2024 17:43
I made it so the user cannot change number and can only change whether or not there exists a bomb on a square.
I had to switch DATA_ATTRIBUTE from data to value in order for the board to actually load
I added values for the cells in the minesweeper puzzle for testing
Some fixes to less bombs than flag and more bombs than flag contradiction rule. Also fixes to stuff using thar rule. New minesweeper boards as well.
Another minesweeper board
new minesweeper rule and several other small changes.
Sort of working version of minesweeper. Probably has bugs but I have not found them yet. Also not completely done because I still have to change the images of the direct rules.
Fixed bugs in direct rule, cleaned up code and fixed other bugs, added 3 more 7x7 easy minesweeper boards
Beginning of 1-2-X rule. Works in one case but need to add mirror and rotations. Other bug fixes and improvements.
1-2-X case rule should now be working in all horizontal cases. I wanted to use a loop to check all cases but that seems less efficient
1-2-X rule done in all cases hopefully (i tested it a lot I hope its good). Also new board and bug fixes.
Added 1-1-E direct rule. Also updated some stuff in 1-2-X direct rules and other files.
Added images for all of the direct rules.  Added new minesweeper boards. Other small fixes and improvements.
A bunch of test cases for Must Contain Bomb Direct Rule
Added test cases for must not contain bomb direct rule
New images for all of the minesweeper rules
changed a ton of stuff to use more consistent wording (such as saying mine instead of bomb) and also commented some code that needed comments
title. also a couple other tiny improvements
Created the test suites for both of the case rules. Also some minor changes
Test suites for both of the contradiction rules
bug fixes
Update Minesweeper Branch
delete files
more bug fixes
1 comment
willyoung366 and others added 5 commits December 6, 2024 20:08
some small improvements and comments
New rule isolatemine - a mine must see a number cell. Added the rule and test suite for the rule.
@jadeandtea
Copy link
Collaborator Author

There are some inconsistencies with file naming convention, but we can clean that up at a later point in time. For now, I'm going to merge these changes into dev.

@jadeandtea jadeandtea merged commit e1b80a8 into dev Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants