Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<Question> ourQuestions = [
- new Question('What is laurens age?', 4, 1),
- new Question('How old is larry?', 8, 4),
- ];
- // Question
- class Question {
- final String questionText;
- final int answer;
- final int difficulty;
- Question(this.questionText, this.answer, this.difficulty);
- }
- class Piece {
- final String value;
- Piece(this.value);
- }
- //Board Space
- class BoardSpace {
- final int index;
- Piece piece;
- BoardSpace(this.index);
- }
- // Board
- class Board {
- static const boardSize = 3;
- final List<BoardSpace> board = [
- new BoardSpace(1),
- new BoardSpace(2),
- new BoardSpace(3),
- new BoardSpace(4),
- new BoardSpace(5),
- new BoardSpace(6),
- new BoardSpace(7),
- new BoardSpace(8),
- new BoardSpace(9),
- ];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement