Skip to content

Instantly share code, notes, and snippets.

🌞 Morning 14 commits ▎░░░░░░░░░░░░░░░░░░░░ 1.6%
🌆 Daytime 374 commits ████████▉░░░░░░░░░░░░ 42.6%
🌃 Evening 451 commits ██████████▊░░░░░░░░░░ 51.4%
🌙 Night 39 commits ▉░░░░░░░░░░░░░░░░░░░░ 4.4%
@tth05
tth05 / tictactoe-console.dart
Last active September 25, 2018 21:10
A very simple console version of tictactoe implemented in dart
import 'dart:io';
var cells = List.generate(3, (_) => [0, 0, 0]);
var player = 1;
void main(List<String> arguments) {
printGameField();
while (true) {
print("Player $player's turn");
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
public class Main {