This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Collection; | |
import java.util.LinkedList; | |
public class Main | |
{ | |
public static void main(String[] args) { | |
Node carNode = new CarNode(); | |
for (int i = 1; i <= 4; i++) { | |
carNode.getChildren().add(new TireNode(i)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javafx.beans.value.ChangeListener; | |
import javafx.beans.value.ObservableValue; | |
import javafx.event.ActionEvent; | |
import javafx.event.EventHandler; | |
import javafx.geometry.Side; | |
import javafx.scene.control.ContextMenu; | |
import javafx.scene.control.CustomMenuItem; | |
import javafx.scene.control.Label; | |
import javafx.scene.control.TextField; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var forward = true; | |
var rotateClockwise = true; | |
var turnClockwise = true; | |
var correctCannonForTurning = true; | |
var attackClone = false; | |
var startedScanClockwise = true; | |
var spotted = false; | |
var moveSpeed = 3; | |
var rotateSpeed = 2; | |
var turnSpeed = 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var forward = true; | |
var rotateClockwise = true; | |
var turnClockwise = true; | |
// This corrects the cannon's rotation when turning. Slows the bot considerably when turning, consider carefully. | |
var correctCannonForTurning = true; | |
var attackClone = false; | |
var moveSpeed = 3; | |
var rotateSpeed = 2; | |
var turnSpeed = 0; | |
var scanning = true; |