Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
Change-Id: I742e050bdb518be2a063299510a7ca064d5e6d86
  • Loading branch information
calcitem committed Feb 13, 2024
1 parent 0725690 commit 4225b82
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ class PiecePainter extends CustomPainter {

if (blurIndex != null &&
GameController().gameInstance.gameMode != GameMode.setupPosition) {

if (kDebugMode) {
if (blurPositionColor == Colors.transparent) {
throw Exception('Blur position color is transparent');
Expand Down
13 changes: 6 additions & 7 deletions src/ui/flutter_app/lib/rule_settings/models/rule_settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class RuleSettings {
/// Creates a Rules object based on the given locale
factory RuleSettings.fromLocale(Locale? locale) {
switch (locale?.languageCode) {
case "fa": // Iran
case "fa": // Iran
case "si": // Sri Lanka
return const TwelveMensMorrisRuleSettings();
case "ko": // Korea
Expand Down Expand Up @@ -179,10 +179,9 @@ class TwelveMensMorrisRuleSettings extends RuleSettings {
class ChamGonuRuleSettings extends RuleSettings {
const ChamGonuRuleSettings()
: super(
piecesCount: 12,
hasDiagonalLines: true,
mayFly: false,
hasBannedLocations: true,
mayRemoveFromMillsAlways: true
);
piecesCount: 12,
hasDiagonalLines: true,
mayFly: false,
hasBannedLocations: true,
mayRemoveFromMillsAlways: true);
}
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,3 @@ void safePop() {
logger.w('Cannot pop');
}
}

0 comments on commit 4225b82

Please sign in to comment.