• Content count

  • Joined

  • Last visited

Community Reputation

122 Neutral

About Tigernado

  • Rank
  1. 2D Graph Generation

    Quote:Original post by dwahler Do you mean a lattice graph? The simplest example has a vertex for each integer lattice point from (1,1) to (m,n), where two vertices are joined by an edge if (and only if) they are adjacent points, i.e. they differ by 1 in either the x or y coordinate. If that's not what you're looking for, you probably need to be more specific. Thanks, that is the kind of graph I was looking for. I didn't really know the term for it. I found the algorithm I needed in the source code for Programming Game AI By Example.
  2. 2D Graph Generation

    Quote:Original post by ApochPiQ Um, generation from what? Do you just want to invent graphs out of thin air? Or is there some particular data source you want to convert to graph form? Sorry, I want to generate a graph from a rectangle to make a grid-like graph.
  3. Hi, I was wondering if anyone had some good resources for 2d graph(with nodes and edges) generation. Thanks
  4. SDL - Graphics Not Displaying

    I'm having the same problem. It happens whether I write my own code or copy and paste straight from source code.
  5. I should be less busy around that time, count me in too...
  6. Binary to Decimal [Java] - Solved!

    Quote:Original post by mercurium It looks like you just need to swap the print statement and the recursive call, like this: public static void binaryPrint(int n) { if(n > 0) { binaryPrint(n / 2); System.out.print((n % 2 )); } } Oh, duh! Thanks!
  7. This is part of an assignment that I'm pretty sure is supposed to be simple to implement, but I must have brain freeze or something. This method I wrote will convert the int n to a binary decimal and print it out...backwards(whoops!). I can't use local variables, it must be recursive and the method must have this signature. Is there something I'm doing that's obvious and easy to fix so it will print in the correct order? public static void binaryPrint(int n) { if(n > 0) { System.out.print((n % 2 )); binaryPrint(n / 2); } } [Edited by - Tigernado on May 1, 2008 1:13:44 PM]
  8. Judging player-created music?

    Lots of good replies so far! Yeah when I meant judging I didn't mean music quality specifically, just making sure what the player made is music. Restricting the player to create certain styles of music is something I was thinking of all along. I haven't come up with a conclusion just yet. I got a two options it seems: 1. Require certain elements in the song and restrict it to a specific style. 2. Make a "toy" instead of a game. I'm thinking of number 1 even though I know it is a lot more work.
  9. Lately I've been thinking about making a game where one of its main features is simply to make music(via some type of sequencer/drum machine type of thing). And I would want it to encourage creativity. The thing is how would I, well, grade or score players on created music? Would I have to check for some type of pattern, make sure it follows some type of beat? What would be the best approach to make sure a player doesn't just string a bunch of random sounds together to get through the game? Does it sound feasible?
  10. Interactive Fiction Map Questions(C#)

    OK, well I decided to use XML to do what you said KulSeran. I'm using System.XML.XPath as well. Seems like the only thing I really don't get yet is how I'm going to link the rooms together in the actual coding. The XML structure I'm using is like this: Quote: <areas> <area> <name>Placeholder Name</name> <description>Placeholder Description</description> <north>Placeholder Name 2</north> <south>Placeholder</south> <east>Placeholder</east> <west>Placeholder</west> </area> <area> <name>Placeholder Name 2</name> <description>Placeholder Description 2</description> <north>Placeholder</north> <south>Placeholder</south> <east>Placeholder</east> <west>Placeholder</west> </area> </areas> How do I make the program look for the appropriate area node when if finds that "north" is not null in the current area and the user wants to go there. This might be easier in a text file but I also wanted to learn how to use XML. [Edited by - Tigernado on August 23, 2007 6:26:50 PM]
  11. So I made a map system for a small IF project I'm making in my spare time and I think that there is probably a better way than what I'm implementing of making a map. Currently I'm making an array of room objects. Which works. But if I have an 8x8 room I have to make 64 objects, which seems kinda like a waste. Is their a way I can do this, even though each room will still need its own description, items, etc? Also, if anyone has source code of an IF written in C#, C++ or Java that would be great too.
  12. [Java] Weird Error

    Doh, should of known that from C# lol, I have another error, but I think it just deals with an out of bounds array...I'll edit this post if I can't fix it.
  13. I'm working on a simple Java program far a class, but I'm being held up by this error: Exception in thread "main" java.lang.Error: Unresolved compilation problems: Checkbook.myCheckbook cannot be resolved to a type Syntax error on token ";", . expected the error is from this block of code: Checkbook myCheckbook = new Checkbook; // Here it says Checkboon.myCheckbook // cannot be resolved to a type myCheckbook.createCheck("Mac",10.0,6,3,2007); myCheckbook.createCheck("sue", "Grass cutting Checkbook is in its own file, along with the rest of the project with no errors. So does anyone have an idea where this error is coming from? P.S. Also..I need to know how to post code the correct way
  14. [.net] Which books to read

    I have been reading Beginning C# 2005 and its helping me understand it C# much better. http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764578472.html I'm also following along in the C# Workshop forum. I have Benjamin Nitschke's book but I haven't read through it yet completely so I can't give a recommendation on that but you should have a pretty good understanding of C# before you read it.
  15. Emergent patterns

    I own this book too. I read it twice. The hard part will be applying emergent patterns to many diffrent types of games.