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
str = "text to translate" | |
map = { | |
'A' => '4', | |
'B' => '|3', | |
'C' => '(', | |
'D' => '|)', | |
'E' => '3', | |
'F' => '|*|-|', | |
'G' => '6', |
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
/* | |
* tsh - A tiny shell program with job control | |
* | |
* Michael Garate | mg3626 | |
* | |
* Book code found here: http://csapp.cs.cmu.edu/public/code.html | |
* | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> |
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
nomoX2oXd&UXpqX2AooonoX|||o2o2oo2o2o22n==n}==XudvXXXXXXXZZZXouo#XZX2ii|=++| | |
noXnXmknq2o3oXdXXXnnXZo+|=2o2o2oo2o2ooo>=|+<<ZZXvXXXXXYSXXXZXXZZXXZe+i|ii|| | |
n2mXp3nX3SXXXqqpoXnnnn1|=<o2oo2o2o2ovls;=+<|=X*}vlivivv>+vv1YXXUXXZc|==|||| | |
nn#3SdGZvpwXoXdX#XnnnSn+>=2o2o2oo222i||=++<=<XoovoXXXXS::+dXouoZXZXe|i||==+ | |
nomopq2X3SXmhZoXpSnnooo|+<o2o2o2o2o2ii==+|=l<ZZXnXXXXo+::<"3XZZ#XXZ}||||i|| | |
nnXXSdSZoXX#XSX2XSnnnXS||<o22oo2o222i==++=<i<XYevlIIIv||<;=IXXXZXZXc|=+++|| | |
nnmSXqoSXoX*1XmXXXvnXoo%=<oo2o2oo2o2l<>==i<i<hnavoXXX2*====noudZXZXci|i|==+ | |
nnVnSXXXdXe:+nXoSXnnnoe}|<o2oo2o2o22i||++><i<ZZXvXXXX>::;=<nZXZZZXZi++|||i| | |
2odSZXom3XC;={#XZXnnXXov||o2o2oo2o22i><;:=<|{XeevI1{v=i:+=)SSSXZXZX%||==++| | |
oo2ooX2Xde1=+|XSXXnnvvs|=ioo2oo2o2o2i=::;+=>{ooovoXXXXz=<vowoudZZXXi|||||== |
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
commit 215bb52d8d75aa7d575108e37c9eb0d7ac5a36b8 | |
Author: Michael Garate <mpgarate@gmail.com> | |
Date: Sat Nov 14 14:10:08 2015 -0500 | |
Initial commit | |
diff --git a/.gitignore b/.gitignore | |
new file mode 100644 | |
index 0000000..37727f9 | |
--- /dev/null |
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
diff --git a/Cargo.lock b/Cargo.lock | |
new file mode 100644 | |
index 0000000..11d7bdc | |
--- /dev/null | |
+++ b/Cargo.lock | |
@@ -0,0 +1,4 @@ | |
+[root] | |
+name = "fifteen_puzzle" | |
+version = "0.1.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
diff --git a/Cargo.lock b/Cargo.lock | |
new file mode 100644 | |
index 0000000..11d7bdc | |
--- /dev/null | |
+++ b/Cargo.lock | |
@@ -0,0 +1,4 @@ | |
+[root] | |
+name = "fifteen_puzzle" | |
+version = "0.1.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
diff --git a/.gitignore b/.gitignore | |
index 37727f9..3a6f03f 100644 | |
--- a/.gitignore | |
+++ b/.gitignore | |
@@ -7,5 +7,7 @@ | |
# Executables | |
*.exe | |
+*.swp | |
+ |
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
diff --git a/src/game/mod.rs b/src/game/mod.rs | |
index 61f833c..65105c3 100644 | |
--- a/src/game/mod.rs | |
+++ b/src/game/mod.rs | |
@@ -1,5 +1,8 @@ | |
pub use self::bitboard::BitBoard; | |
pub use self::position::Position; | |
+pub use self::state::GameState; | |
+ | |
mod bitboard; |
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
diff --git a/src/game/bitboard.rs b/src/game/bitboard.rs | |
index 2564a85..08ec7f7 100644 | |
--- a/src/game/bitboard.rs | |
+++ b/src/game/bitboard.rs | |
@@ -1,4 +1,5 @@ | |
use game::position::Position; | |
+use std::fmt; | |
#[allow(dead_code)] | |
const BOARD_STATE_EMPTY: u64 = 0x123456789ABCDEF0; |
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
diff --git a/src/game/bitboard.rs b/src/game/bitboard.rs | |
index 2564a85..08ec7f7 100644 | |
--- a/src/game/bitboard.rs | |
+++ b/src/game/bitboard.rs | |
@@ -1,4 +1,5 @@ | |
use game::position::Position; | |
+use std::fmt; | |
#[allow(dead_code)] | |
const BOARD_STATE_EMPTY: u64 = 0x123456789ABCDEF0; |
OlderNewer