display single tile

This commit is contained in:
Михаил Капелько
2026-06-01 19:37:13 +03:00
parent 471d81bca0
commit 2bcea6ab15
3 changed files with 57 additions and 13 deletions

17
src/tutFun.dart Normal file
View File

@@ -0,0 +1,17 @@
library;
import 'package:flutter/material.dart';
import 'game.dart';
Color tutTileColor(HitType t) {
if (t == HitType.hit) {
return Colors.green;
}
if (t == HitType.partial) {
return Colors.yellow;
}
if (t == HitType.miss) {
return Colors.grey;
}
return Colors.white;
}