Skip to content

Commit 2f36d07

Browse files
dzianis-sudkoudzianis-sudkou
authored andcommitted
Refactored file naming. And fixed the problem
1 parent 766c657 commit 2f36d07

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ To run the project, you need to have Effekt installed on your machine. You can f
4343
After installing Effekt, you can run the project by executing the following command in the project's root directory:
4444

4545
```bash
46-
effekt src/Stupid.effekt --backend js --includes .
46+
effekt src/main.effekt --backend js --includes .
4747
```
4848

4949
## Resources

src/Stupid.effekt renamed to src/Game.effekt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module src/Stupid
1+
module src/Game
22

33
import tty
44
import io/console

src/Generate.effekt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def deactivateSmallBoard(gameBoard: GameBoard, smallBoardNumber: Int): GameBoard
5252

5353
var newSmallBoard: SmallBoard = newBigBoard.get(smallBoardNumber)
5454
var counter: Int = 0
55-
newGameBoardSmallCopy = newGameBoardSmallCopy.replace(smallBoardNumber, Empty())
55+
// newGameBoardSmallCopy = newGameBoardSmallCopy.replace(smallBoardNumber, Empty())
5656

5757
newSmallBoard.foreach {cell =>
5858
cell match {

src/main.effekt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module main // must be named same as the file!
22

33
import src/lib
4+
import src/Game
45

5-
def main(): Unit = println(helloWorld())
6+
def main(): Unit = playGame()

src/test.effekt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def main() = mainSuite("main") {
7878
}
7979
// You might want to assert something about smallCopy here depending on desired behavior
8080
// For example, if smallCopy should also be reset:
81-
assertEqual(game.smallCopy.get(0), Empty())
81+
// assertEqual(game.smallCopy.get(0), Empty())
8282
}
8383

8484
test("checkNewCell places Cross in cell 0 of small board 0") {

0 commit comments

Comments
 (0)