Skip to content

Instantly share code, notes, and snippets.

module CubeSolver
// Represent the state of a Rubik's Cube
type CubeState =
{ EdgePositions : int array
EdgeFlips : int array
CornerPositions : int array
CornerTwists : int array }
var da = new DataSet();
var adapter = new OleDbDataAdapter();
var path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
path += "asdf_5.xlsx";
var connectionString = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + path
+ @";Extended Properties=""Excel 12.0 Macro;HDR=YES;ImportMixedTypes=Text;TypeGuessRow=0""";
var conn = new OleDbConnection(connectionString);