Skip to content

Commit 92e26d0

Browse files
author
Daniel Barclay
committed
ManualTicTacToe: Moved GameUI, etc., to subpackage "ui".
1 parent 37cc31c commit 92e26d0

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed

src/main/scala/com/us/dsb/explore/algs/ttt/manual/ManualTicTacToe.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package com.us.dsb.explore.algs.ttt.manual
22

3+
import com.us.dsb.explore.algs.ttt.manual.ui.GameUI
4+
35
object ManualTicTacToe extends App {
46

57
val gameResult = GameUI.runGame(GameUI.ColoredConsoleTextIO) // ?? specify starting user?

src/main/scala/com/us/dsb/explore/algs/ttt/manual/GameUI.scala renamed to src/main/scala/com/us/dsb/explore/algs/ttt/manual/ui/GameUI.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.us.dsb.explore.algs.ttt.manual
1+
package com.us.dsb.explore.algs.ttt.manual.ui
22

33
import cats.syntax.option._
44
import cats.syntax.either._

src/main/scala/com/us/dsb/explore/algs/ttt/manual/GameUIState.scala renamed to src/main/scala/com/us/dsb/explore/algs/ttt/manual/ui/GameUIState.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.us.dsb.explore.algs.ttt.manual
1+
package com.us.dsb.explore.algs.ttt.manual.ui
22

33
import com.us.dsb.explore.algs.ttt.manual.game._
44

src/main/scala/com/us/dsb/explore/lang/Quasiquotes.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ object Quasiquotes extends App {
2727

2828
val x13: Any = {
2929
println("- execution val x13 = x12.apply:")
30-
x12.apply
30+
x12.apply()
3131
}
3232
println("- returned value x13:\n" + x13)
3333

src/main/scala/com/us/dsb/explore/libs/scalatest/see_test_subtree.scala

Whitespace-only changes.

src/test/scala/com/us/dsb/explore/algs/ttt/manual/GameUITest.scala renamed to src/test/scala/com/us/dsb/explore/algs/ttt/manual/ui/GameUITest.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
package com.us.dsb.explore.algs.ttt.manual
1+
package com.us.dsb.explore.algs.ttt.manual.ui
22

3-
import com.us.dsb.explore.algs.ttt.manual.GameUI.{GameUIResult, SegregatedTextIO}
3+
import com.us.dsb.explore.algs.ttt.manual.ui.GameUI.{GameUIResult, SegregatedTextIO}
44
import org.scalatest.funspec.AnyFunSpec
55
import org.scalatest.matchers.should.Matchers._
66

0 commit comments

Comments
 (0)