aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ee1301/wk3/hw3_directory/strap012_HW3A.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ee1301/wk3/hw3_directory/strap012_HW3A.cpp b/ee1301/wk3/hw3_directory/strap012_HW3A.cpp
index 1292657..d8db2b1 100644
--- a/ee1301/wk3/hw3_directory/strap012_HW3A.cpp
+++ b/ee1301/wk3/hw3_directory/strap012_HW3A.cpp
@@ -18,7 +18,7 @@ int spin_the_wheel(int d, int w) {
spinOG = rand() % d + 1;
for (int i=w; i>0; i--) {
spinNew = rand() % d + 1;
- if (spinNew==spingOG) {
+ if (spinNew==spinOG) {
//Do nothing
} else {
return 0;