display single tile

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

No files matched your search

+17
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;
}