Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:only move once
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:c9e28386b7fc126116c9563a2d0ef8a50266d8ced753c292718eb755dfba649d
User & Date: zie 2018-05-18 18:00:56
Context
2018-05-18
18:17
Debugging statements check-in: 39b76ecfcc user: sarah tags: trunk
18:00
only move once check-in: c9e28386b7 user: zie tags: trunk
17:54
Who even knows what i did check-in: 78745a5066 user: sarah tags: trunk
Changes

Changes to finalproject/finalproject.cpp.

98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124

125
126
127
128
129
130
131

if ((xPos> -1) && (xPos<20) && (yPos>-1) && (yPos<40))
{
 cout << "xPos <1, resetting back to 1";
       if(xPos<1)
 {
       xPos=1;
       Move(UserMove);
 }
 if(xPos>19)
{cout << "xPos > 19, resetting back to 19";
      xPos=19;
      Move(UserMove);
}
if(yPos<0)
{cout << "yPos< 0, resetting back to 0";
      yPos=0;
      Move(UserMove);
}
if(yPos>39)
{cout << "yPos > 39, resetting back to 39";
      yPos=39;
      Move(UserMove);
}
Move(UserMove);
     
}


}


};

//You can modify and change main()







<




<




<




<

<


>







98
99
100
101
102
103
104

105
106
107
108

109
110
111
112

113
114
115
116

117

118
119
120
121
122
123
124
125
126
127

if ((xPos> -1) && (xPos<20) && (yPos>-1) && (yPos<40))
{
 cout << "xPos <1, resetting back to 1";
       if(xPos<1)
 {
       xPos=1;

 }
 if(xPos>19)
{cout << "xPos > 19, resetting back to 19";
      xPos=19;

}
if(yPos<0)
{cout << "yPos< 0, resetting back to 0";
      yPos=0;

}
if(yPos>39)
{cout << "yPos > 39, resetting back to 39";
      yPos=39;

}

     
}
Move(UserMove);

}


};

//You can modify and change main()