From c8bcf620ef8849fc4666723bac65477319a352ca Mon Sep 17 00:00:00 2001 From: Andrei Stoica Date: Fri, 20 Dec 2024 13:20:25 -0500 Subject: [PATCH] removed outside lines --- lib/main.dart | 14 +++++++++++++- todo | 4 ++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 todo diff --git a/lib/main.dart b/lib/main.dart index 9f6d1a0..7839b04 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -187,8 +187,20 @@ class _TTCGameState extends State { } } + Border _genCellBorder( + int index, { + BorderSide borderSide = const BorderSide(), + }) { + return Border( + top: index < 3 ? BorderSide.none : borderSide, + bottom: index > 5 ? BorderSide.none : borderSide, + left: [0, 3, 6].contains(index) ? BorderSide.none : borderSide, + right: [2, 5, 8].contains(index) ? BorderSide.none : borderSide, + ); + } + Widget _genCell(int index, TTCState state) => Container( - decoration: BoxDecoration(border: Border.all()), + decoration: BoxDecoration(border: _genCellBorder(index)), child: TTCCell( state: state, stateSetCallback: () { diff --git a/todo b/todo new file mode 100644 index 0000000..9c7a9b3 --- /dev/null +++ b/todo @@ -0,0 +1,4 @@ +- seperate game logic from widgets to display +- ui with options for super and regular game +- ui for super game +- firebase for multiplayer game