This commit is contained in:
m-mun
2026-09-09 08:34:32 +09:00
parent 8e67b4ccb9
commit 1b863df929
181 changed files with 34869 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
/*
* 作成 Rhizome
*------------------------------------------------------------
* Copyright(c) Rhizome Inc. All Rights Reserved.
*/
import java.util.Random;
public class Car {
String color;
int gasoline;
Driver driverInfo;
int run() {
this.gasoline--;
if (gasoline < 0) {
return -1;
}
Random random = new Random();
int distance = random.nextInt(15) + 1;
return distance;
}
}