Bram-Hub / LEGUP

Logic Engine for Grid-Using Puzzles - a better way to learn formal logic
GNU General Public License v3.0
33 stars 82 forks source link

[ENHANCEMENT] Draw lines for regions code location #848

Open offline171 opened 2 months ago

offline171 commented 2 months ago

Describe the current behavior of what you're trying to improve. If your enhancement request related to a problem, please also describe the problem.

Currently, we don't have borders drawn for users to see in StarBattle, even if the code recognizes where the borders are secretly. I think I found out where it would be best to add borders for StarBattle, and possibly other puzzles as well.

Describe the improvement you'd like

In order to draw an element that will work with the board, (scale with the board when the size is changed, etc,) Star Battle should override the "drawBoard(Graphics2D)" function in the file path "\LEGUP\src\main\java\edu\rpi\legup\ui\boardview\BoardView.java," and place the override in the file path "\LEGUP\src\main\java\edu\rpi\legup\puzzle\starbattle\StarBattleView.java." Other puzzles overriding the drawBoard function should be used as guidelines, where they super call drawBoard, and then afterwards, have seperate draw calls for whatever additional elements they need. We could use these additional calls to draw the borders.

Describe alternatives you've considered

No response

Additional Context

No response