Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~10.9K People Reached
Favorite Tags

12 Posted Topics

Member Avatar for elvis1

To read a file use: [CODE=python]fileHandle = open ( 'text.txt', 'r' ) str1 = fileHandle.read() fileHandle.close() print str1 break[/CODE] To write data to a file use: [CODE=python]fileHandle = open ( 'text.txt', 'w' ) fileHandle.write(str1) fileHandle.close()[/CODE] To append data to an existing file use: [CODE=python]fileHandle = open ( 'text.txt', 'a' ) …

Member Avatar for noonecares
1
3K
Member Avatar for Simes

So I am working on a Traffic Simulator and I am having a fair bit of trouble with it. I need the menu to display, user chooses the option enters a value for the option and then either it loops with the menu again and they can set other options. …

Member Avatar for JamesCherrill
0
255
Member Avatar for Simes

This is an assignment I am working on for uni and I have done quite alot by myself and with some hints along the way from others who know Java better than I do. So I am working on a GUI Traffic Simulator (creating the GUI and drawing it is …

Member Avatar for Simes
0
181
Member Avatar for Simes

So I am trying to implement a menu that loops in a CLI simulator, I have the menu implemented but I am stuck figuring out how to make it loop or progress to the next option that requires input from the user. I have used scanner in for the menu, …

Member Avatar for NormR1
0
181
Member Avatar for Simes

I have written some code in Python for a tanks game and I need to write pseudocode for the Tank's move method and main game functions (battle and bonuses). What is bold and underline are what I need to do pseudocode for in the quoted text. I know what pseudocode …

Member Avatar for Simes
0
533
Member Avatar for Simes

I am stuck on the parts of the first code that have <> in place of actual code and having trouble getting testing done at the end of the first code, the testing of the functions that I cannot get to work have being quoted out in Python. [CODE=python]from random …

Member Avatar for Simes
0
204
Member Avatar for Simes

Guessing Game with functions, classes, methods, etc [CODE=python]#Code should always be in a method or class #Always start variable names with lowercase, classes could be capital #input.upper() allows the user to use lower or upper case for each option import random from operator import itemgetter def isint(x): try: int(x) return …

Member Avatar for TrustyTony
0
281
Member Avatar for Simes

[CODE=python]#Code should always be in a method or class #Always start variable names with lowercase, classes could be capital #input.upper() allows the user to use lower or upper case for each option import random from operator import itemgetter def isint(x): try: int(x) return True except: return False print "Invalid guess. …

Member Avatar for Simes
0
108
Member Avatar for Simes

So I have being asked to create something in JavaScript and was told what they want it to be like, since I am beginning JS amongst other web development languages. Anyway have a look at the image and let me know if it is possible to do with JS or …

Member Avatar for Simes
0
6K
Member Avatar for Simes

[CODE=python]#Code should always be in a method or class #Always start variable names with lowercase, classes could be capital #input.upper() allows the user to use lower or upper case for each option import random def isint(x): try: int(x) return True except: return False print "Invalid guess. " def getGuessValidator(): while …

Member Avatar for Simes
0
410
Member Avatar for Simes

Hi I am Simes, currently learning Python. I hope to learn other languages as well and learn to make games for myself and friends and hopefully one day work for a game company.

Member Avatar for mackone
0
19
Member Avatar for Simes

I am working on a guessing game in Python and would like some feedback on how the code looks. I am struggling a bit with it, particularly with the menu options and getting it to loop back to the menu again after it has written to a high scores txt …

Member Avatar for Simes
0
147

The End.