No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
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 … |
|
Hello, I strongly need your assistance what is needed to modify in order the board to inherit the complete functionality of the game. The clienthandler class contains all the methods for playing the game on the terminal [please check the code] Thanks in advance for any help ! [CODE=java] import … |
|
Hello, I urgently need help, im trying to complete a class which will be able of multiple - clients but is not doing the required puprose. Can anyone be assistance of what is needed to add for handling the clients ?? Thanks in advance!! [CODE=java] import java.util.ArrayList; import java.util.concurrent.Semaphore; class … |
|
Hello, I want to modify a java client/server game as to load the map from an xml and then validate against the dtd. Is it okay to do something like that? [CODE=java] public void parseXML(){ try{ DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); Document xmlDocument = dBuilder.parse(new FileInputStream("map.xml")); DOMSource … |
|
Hello, I did a pagerank application but unfortunately it does not posting the url to the server. Can anyone have a look to my code and tell me what im missing ? ! Thanks in advance! [CODE=java] import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.ObjectOutputStream; import … |
|
Hello, Im trying to implement a program which will split a text file and then parses the elements to an arraylist. My text file looks like that: [QUOTE] Name: Mariah Johnson Customer no: 663,283 Post code: BA1 74E Telephone no: 028-372632 Last modified: Jan 11, 2007 8:10:05 PM GMT Name: … |
|
Hello, when it asks to place the elements of an unsorted array to a binary tree does this means a heapsort implementation ????? Another thing how can i take two numbers and print all the values between them ?? i mean in the heapsort ? Thanks in advance |
|
Hey i want to create a method which counts the nodes from a binary tree that have exactly one child i did that but it returns error :S Can anyone tell me what's going wrong ?? Thanks in advance [CODE] //Count nodes from BinaryTree1 that have exactly one child public … |
|
Hey, I have to create a program which will accept two lists of words and place the contents of the first list to an [B]unordered [/B] array, to an ordered tree and to a hashtable. then each word in the 2nd list shall be checked whether it is contained in … |
|
hey and happy new year! i cant understand whats the difference between x++ and ++x if anyone knows let me know :) thanks in advance ! |
|
hey i have that singleton code in java but how can i check that it have an instance only? [CODE] class singleton { private static singleton instance; private singleton() { } public static singleton getInstance() { if (instance == null){ instance = new singleton(); } return instance; } } [/CODE] … |
|
Hey i have to create a 2D array of rows and columns which will takes a row and a columns as a paremeter and enters a string into that positions. I managed [i think so] to create the array but i cant find a way of getting from the user … |
|
does anyone knows how can i create an array that will get parameters from the user row and column and with a method to fill with strings the rows and columns and after that to print it out. i tried several things BUT nothing works :( if anyone knows how … |
|
Hey, I try of saving my board to a text file and then trying to load my board from the text file but actually does not works. If anyone knows how this can be solve let me know ! Thanks |
|
Re:
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 … |
|
Could you please help me / explain me how to create a four in a row game in python? Thanks! |
|
I am a python newbie and i have trouble with those 2 exercises: 1.A date of the form "8-MAR-85" includes the name of the month, which must be translated to a number. Create a dictionary suitable for decoding month names to numbers. I have to create a function which uses … |