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