generated from me/template-mit
Create a very simple text-based game board.
This commit is contained in:
@@ -11,8 +11,38 @@ class MainApp extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return const MaterialApp(
|
||||
home: Scaffold(
|
||||
body: Center(
|
||||
child: Text('Hello World!'),
|
||||
body: Row(
|
||||
children: [
|
||||
// Player 1 Goal
|
||||
Column(children: [Text("P1")]),
|
||||
// Center holes
|
||||
Column(
|
||||
children: [
|
||||
Row(
|
||||
children: [
|
||||
Column(children: [Text("0,0")]),
|
||||
Column(children: [Text("1,0")]),
|
||||
Column(children: [Text("2,0")]),
|
||||
Column(children: [Text("3,0")]),
|
||||
Column(children: [Text("4,0")]),
|
||||
Column(children: [Text("5,0")]),
|
||||
],
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
Column(children: [Text("0,1")]),
|
||||
Column(children: [Text("1,1")]),
|
||||
Column(children: [Text("2,1")]),
|
||||
Column(children: [Text("3,1")]),
|
||||
Column(children: [Text("4,1")]),
|
||||
Column(children: [Text("5,1")]),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
// Player 2 Goal
|
||||
Column(children: [Text("P2")]),
|
||||
],
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user