No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
I do have a problem with my connect four code ; it doesn't check whether there is a winner even though the function its okay :-/ Can anyone help me to solve my problem ??? [CODE=python] import random board = dict() rows,columns = 4,4 def game(): choose_player() #MAKE BOARD FUNCTION … |
|
Hey i have to write a program that will prompt the user to write sentences and those sentences will be written until the user type "stop". i though of doing such a thing but its not doing what i want because i want each input to be on a new … |
|
Hey i want to create a [B][U]vector[/U][/B] in order to store circles in it. i did something but im getting a warning error "java uses unchecked or unsafe operations" if anyone knows whats going wrong let me know thanks in advance! [CODE] import java.util.Vector; import java.awt.*; import java.awt.geom.*; public class … |
|
Hey I have a problem of how can i modify the bankAccount in order to count how many instances of the class have been created. I think of that but the problem is that don't know how to add it to the original program : private static int instanceCount = … |
|
code: def rpn(): list = [] while 1: x = raw_input(" ") if x in ["+","-","*","/","%"]: y=str(eval(list[-2]+x+list[-1])) list[-2:]=[y] elif x == "": break elif x == "=": print y else: list.append(x) How can i modify my rpn calculator in order to: 1)accept random number x = random number e.g x … |