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
/*Sudoku Solver | |
This Sudoku solver gives solution to a Sudoku given a Sudoku problem in Row Major Form* | |
I am going to first try solving this using Depth First Search. | |
TODO I also want to try solving it like a human would using constraints. | |
The assumption is that a Soduku is a 9 x 9 solution | |
Solution inspired by JOHANNES BRODWALL | |
Written by Andrew Tam | |
Input Form: |
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
// Terminal 2048 | |
// By: Andrew Tam | |
// There is currently no GUI for this game and is played completely on the Terminal. | |
// Type in the instructions such as "up", "down", "left", "right" to move the tiles | |
// Type in "reset" to reset the game | |
import java.util.Scanner; | |
import java.util.Arrays; | |
import java.util.ArrayList; | |
import java.util.Random; |