This file contains hidden or 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
| class Point: | |
| ''' Point class for representing and manipulating x,y coordinates. ''' | |
| def __init__(self, initX, initY): | |
| '''Create a new point at the origin''' | |
| self.x = initX | |
| self.y = initY | |
| p = Point(7, 6) | |
| q = Point(8, 2) |
This file contains hidden or 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
| elif enamyAttack == 3: | |
| time.sleep(1) | |
| print('The ' +enamyDetails[0] + ' attacks you with ' + enamyDetails[6] + ' for ' + enamyDetails[7] +' damage') | |
| playerHealth = playerHealth - int(enamyDetails[7]) | |
| if playerHealth <= 0: | |
| combotLost = True | |
| elif enamyDetails[10] !=0: | |
| playerStatus = int(enamyDetails[10]) | |
| playerTurn = 0 |
This file contains hidden or 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
| <?php | |
| require './conf/dbconf.php'; | |
| require './conf/opendb.php'; | |
| //echo "<pre>".print_r($_REQUEST,true)."</pre>"; | |
| session_start(); | |
| if (!isset($_SESSION['leo']) || $_SESSION['leo'] != true) { |