This site requires JavaScript, please enable it in your browser!
Greenfoot back
JetLennit
JetLennit wrote ...

2013/5/1

Discussion for Workshop

JetLennit JetLennit

2013/5/1

#
A discussion for this... talk about all the stuff in it!
bourne bourne

2013/5/1

#
I got to head out - dinner and social event. But will be more than happy to discuss more the next time I have time.
Lol, cool. I don't know why I didn't start a discussion the first place.
bourne bourne

2013/5/1

#
@JetLennit - The basic search that I included takes a String as input and a master list. It creates a new list, then iterates the master list, adding its contents to the new one based on the criteria: 1. Equal or greater length of the input String. AND 2. The substring of the item - starting at index 0, up to before the length of the input string - compared to the input String (ignoring case) returns 0 - meaning is equal disregarding upper/lower case. Example:
newList.clear();
for (String str : masterList)
{
    int length = inputString.length();
    if (str.length() >= length)
        if (str.substring(0, length).compareToIgnoreCase(inputString) == 0)
            newList.add(str);
}
JetLennit JetLennit

2013/10/1

#
You should add a comment thing inside of the program
bourne bourne

2013/10/1

#
What do you mean?
JetLennit JetLennit

2013/10/1

#
Like, either an area you can comment or like a map
bourne bourne

2013/10/1

#
You mean descriptions for maps? Or submitting comments on others' maps? The problem is the limited and small amount of memory UserInfo provides. Currently my game dedicates the full amount to map data. Comments in the form of Strings of characters would consume the capacity very quickly.
JetLennit JetLennit

2013/10/1

#
That is true.... what about likes where you like other maps?
bourne bourne

2013/10/1

#
That would require a list of identifiers of those maps that you like. Each identifier would somehow have to uniquely correspond to a particular user and a particular map of that user. A question would be how many likes are each user allowed to give? Again it would consume the space available per UserInfo very quickly, decreasing amount dedicated to map data
You need to login to post a reply.