Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions TuringMachine/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions TuringMachine/.idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions TuringMachine/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

152 changes: 152 additions & 0 deletions TuringMachine/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions TuringMachine/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# TuringMachine

This is a program developed in IntelliJ idea, its purpose is to simulate the functionality of a Turing Machine.

This specific machine changes every pair of "00" to "11" and vice versa, this using a given graph (Found in src/images)

I hope this is useful for you!

If you are gonna run this in the same IDE, and you get an error, you may do this:
* Go to "Run"
* Go to "Edit configurations"
* In "VM options" add the following line:
* --add-modules javafx.controls,javafx.fxml --module-path "YOUR_PATH_TO_JAVAFX_LIB_FOLDER"

Thanks for testing this out!

Best regards, RockLee444.
12 changes: 12 additions & 0 deletions TuringMachine/Turing.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="javafx.11.0.2" level="application" />
</component>
</module>
20 changes: 20 additions & 0 deletions TuringMachine/src/Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;

public class Main extends Application {
public static void main(String[] args) {
Main.launch();
}

@Override
public void start(Stage primaryStage) throws Exception {
AnchorPane root;
root = (AnchorPane) FXMLLoader.load(Main.class.getResource("/views/MainFXML.fxml"));
Scene scene = new Scene(root);
primaryStage.setScene(scene);
primaryStage.show();
}
}
Loading