fix: PR issues fixed
This commit is contained in:
@@ -218,4 +218,3 @@ class GameEngine extends Observable:
|
||||
"Illegal move."
|
||||
))
|
||||
|
||||
end GameEngine
|
||||
|
||||
@@ -214,4 +214,3 @@ class CommandInvokerBranchTest extends AnyFunSuite with Matchers:
|
||||
invoker.execute(cmd3) // While loop condition should be false, no iterations
|
||||
invoker.history.size shouldBe 3
|
||||
|
||||
end CommandInvokerBranchTest
|
||||
|
||||
@@ -121,4 +121,3 @@ class CommandInvokerTest extends AnyFunSuite with Matchers:
|
||||
invoker.history(1) shouldBe cmd3
|
||||
invoker.getCurrentIndex shouldBe 1
|
||||
|
||||
end CommandInvokerTest
|
||||
|
||||
@@ -50,4 +50,3 @@ class CommandTest extends AnyFunSuite with Matchers:
|
||||
val cmd = ResetCommand()
|
||||
cmd.description shouldBe "Reset board"
|
||||
|
||||
end CommandTest
|
||||
|
||||
@@ -275,4 +275,3 @@ class GameEngineTest extends AnyFunSuite with Matchers:
|
||||
override def onGameEvent(event: GameEvent): Unit =
|
||||
events += event
|
||||
|
||||
end GameEngineTest
|
||||
|
||||
@@ -13,4 +13,3 @@ object Main:
|
||||
val tui = new TerminalUI(engine)
|
||||
tui.start()
|
||||
|
||||
end Main
|
||||
|
||||
@@ -74,4 +74,3 @@ class TerminalUI(engine: GameEngine) extends Observer:
|
||||
val redoHint = if engine.canRedo then " [redo]" else ""
|
||||
print(s"${turn.label}'s turn. Enter move (or 'quit'/'q' to exit)$undoHint$redoHint: ")
|
||||
|
||||
end TerminalUI
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
@main def test() = println("hi")
|
||||
Reference in New Issue
Block a user