OIO - simple bt good game play available on appstore

Member Avatar
Member Avatar
+0 forum 2

Evil Nation A is angry and plans to launch N guided-missiles at the peaceful Nation B in an attempt to wipe out all of Nation B’s people. Nation A’s missile i will arrive in nation B at the time ti. Missile i communicates with its headquarters by unique radio signals with a frequency equal to fi. Can you help the peaceful Nation B survive by building a defensive system that will stop the missiles dead in the sky? Defensive system: The only way to defend Nation B from the attacking missile is by counter attacking them with a hackerX missile. …

Member Avatar
Member Avatar
-1 forum 1

Hi, I'm trying to reverse the ordering of number. I'm given an array of size.. say, 5. WITHIN a do-while loop, I must iterate from element 0 to 4. For example, if the element contains ["Apple", "Banana", "Cow", "Dog", "Egg"], the output of the do-while loop has to be: Apple Banana Cow Dog Egg I have tried (in C#): int numOfElements = array.Count; //Number of elements. do { TextBox.Text += array[numOfElements-1] + " "; numOfElements--; } while (numOfElements != 0); ...but obviously this will print out "Egg Dog Cow Banana Apple", which is the reverse order of what I'm tring …

Member Avatar
Member Avatar
+0 forum 2

I am going to be honest here, I am completley lost on trying to figure this out. I am trying to create a sudoku solver using sat4j for a 9x9 puzzle. I am trying to read a partially filled board and, by using a Satisability solver it finds a legal assignment to the empty squares (if possible). If such an assignment is impossible, the program says so; otherwise, it prints the original board and a solution to the terminal. import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.util.Scanner; public class sudoku { private int dim; private int size; private int [][] …

Member Avatar
+0 forum 0

Hey everyone, i need help with this program im doing for a class, now i havent used c++ in a while so thats why im considerably fresh in all this. any at all help would be greatly apprecietated. ALso i can NOT spell to save my life. the problem states this much  Write a program to solve the 8-Tiles Puzzle using the best first search algorithm. You need to compare between using the following heuristics to estimate the distance to the goal:  h1= 0 (this will be the breadth first search)  h2= number of misplaced tiles  …

Member Avatar
+0 forum 0

post three words (the most unrelated words a place, an animal and a thing) that you think NO ONE in the world has ever posted on the internet in that sequence.. *Rule* you have to use the last word of the previous post.. PS: its a skill to come up with simple yet unrelated words. i'll start.. CROW ATOM EGYPT

Member Avatar
Member Avatar
+0 forum 22

I have a Sudoku puzzle and I need to make sure that each row and column have each number 1 through 9. What is the easiest way of doing this? The code snippet that I have so far is below. public static boolean rowsAreValid(int[][] array){ for(int i = 0; i < array.length; i++){ for (int j=0;j<array.length;j++){ This is my Sudoku puzzle. Note that I also need to do the same for each 3x3 section. Your help is greatly appreciated! 3 8 4 2 1 6 9 7 5 9 7 1 8 5 4 3 2 6 5 2 6 …

Member Avatar
Member Avatar
+0 forum 4

I am interested in hiring a software developer but I do not know what should I be asking for when I post the job. My project consists in developing a software that can analyze an edge-matching puzzle game of my invention to produce as many possible solutions numbered, and also creating an online version of my game with different levels of difficulty. The possible solutions to my game could be exponentially high. I’ve heard that Java should be language and that to get the solutions the program should run simulations. Can you please give me your suggestions?

Member Avatar
Member Avatar
+0 forum 2

I've taken 1 course in Java and 1 in C++ and now I'm tinkering with Python (love it so far). My module I'm currently working on is designed to solve a certain puzzle. To understand the code you'll need to understand the puzzle: There is an upside down triangle with n amount of numbers on the top row. For example, if n were 3 the triangle would look like this: _ _ _ _ _ _ There are a total of 6 spaces in this example. The puzzle is to find all the possible solutions so that the difference between …

Member Avatar
Member Avatar
+0 forum 3

I am in a java programming class but my teacher doesn't teach anything so could someone please explain to me how to import a picture into the applet and give me an example of a simple script that just imports a picture. I have learned how to use the mouse and the graphics and all of that. Thanks. BTW I'm going to try to make a slider puzzle.

Member Avatar
Member Avatar
+0 forum 3

Please help me. I am having trouble implementing the breadth first search algorithm for the classic 8 puzzle problem. I have some code if anybody can help. Or is there any tutorials or examples that you can link to me? My problem is that it only solves about 5 different inputs and thats it. Sometimes it runs out of memory, and the others are no solution. Is my algorithm wrong? Or is the algorithm so incomplete that it only solves a select few? Anyways heres what I have: [B]statespace.h[/B] [CODE=c] #ifndef STATESPACE_H #define STATESPACE_H #include <string> #include <set> #include <queue> …

Member Avatar
Member Avatar
+0 forum 1

Hi guys, this is my first post here, and I'd love any feedback you guys can give me. I'm writing a basic program that bubble sorts its ints in an array to ascending order, then resorts some of those specific ints to the element of the position they represent. What I mean by this is that if say the int 3 is the content of the zero element of my array after bubble sort, I want to move it to the second element so it would print out third. However, I want to keep the rest of the ints in …

Member Avatar
Member Avatar
+0 forum 2

Hey guys im trying to generate all possible string for a given pattern given a length and length of blocks. For example if length=5 and the code was 2,1 then there must a block of 2 and then a block of 1 with at at least one gap between them. 'X' is a gap and 'Y' is a block Here is what my program gives me: YYXYX XYYXY YYXXY So the way i do it right now is using binary strings from 00000 to 11111 and then prune off the ones that don't meet the code criteria. The problem is …

Member Avatar
Member Avatar
+0 forum 1

[ATTACH=right]16654[/ATTACH]Ha Ha (serious face) Is joke. Listen, my Gaming Comrades, Piston Games of Russia says they have [I]just[/I] the game for those times when you're busy. Too busy to play a video game? Never! Piston Founder, Anton Gladkoborodov believes you [I]always[/I] have time for gaming. "Some people said, that games take away their free time. But everyone can remember situation, when you want to kill time: in line, in airport or even on toilet sink. You can have fun in all these periods of idleness." Yes, your toilet sink. I don't know about you, but I was wondering why using …

Member Avatar
+0 forum 0

I have noticed that there isn't a thread where you are given puzzles. So i going to change that! Your puzzle is to make an exacutable c++ program that outputs "hello world" 20 times (try to be exciting). Rules: it has to be c++ it has to work I look forward to your answers. :)

Member Avatar
Member Avatar
+0 forum 9

Hi there, I'am developing a snippet for a website widget that will read/fetch data from an XML file, sort it in array's and then show it back to the user - formated as a sentence. [b]Example:[/b] [b]XML sample:[/b] [code=text] <row id="1"> <username>GGR1024</username> <name>Raymond</name> <surname>Saliba</surname> <game>Lotto</game> <won>5000</won> </row> <row id="2"> <username>GGR1111</username> <name>Isabelle</name> <surname>Bonnici</surname> <game>Lotto</game> <won>1000</won> </row> <row id="3"> <username>GGR1024</username> <name>Raymond</name> <surname>Saliba</surname> <game>Lotto</game> <won>2000</won> </row> <row id="4"> <username>GGR1024</username> <name>Raymond</name> <surname>Saliba</surname> <game>Lotto</game> <won>200</won> </row> [/code] So... I read that XML file line by line and put the values in an array, do some functions and then show the formatted data back to the …

Member Avatar
Member Avatar
+0 forum 12

The End.