mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Fix
This commit is contained in:
@@ -60,7 +60,7 @@ module.exports = class DotsAndBoxesCommand extends Command {
|
|||||||
let first = Number.parseInt(matched[1], 10);
|
let first = Number.parseInt(matched[1], 10);
|
||||||
let second = Number.parseInt(matched[2], 10);
|
let second = Number.parseInt(matched[2], 10);
|
||||||
if (first === second) return false;
|
if (first === second) return false;
|
||||||
if (second > first) {
|
if (second < first) {
|
||||||
const temp = first;
|
const temp = first;
|
||||||
first = second;
|
first = second;
|
||||||
second = temp;
|
second = temp;
|
||||||
@@ -93,7 +93,7 @@ module.exports = class DotsAndBoxesCommand extends Command {
|
|||||||
const matched = choice.match(/([0-9]+)\-([0-9]+)/);
|
const matched = choice.match(/([0-9]+)\-([0-9]+)/);
|
||||||
let first = Number.parseInt(matched[1], 10);
|
let first = Number.parseInt(matched[1], 10);
|
||||||
let second = Number.parseInt(matched[2], 10);
|
let second = Number.parseInt(matched[2], 10);
|
||||||
if (second > first) {
|
if (second < first) {
|
||||||
const temp = first;
|
const temp = first;
|
||||||
first = second;
|
first = second;
|
||||||
second = temp;
|
second = temp;
|
||||||
|
|||||||
Reference in New Issue
Block a user