Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×

Comment Re:Infinite (Score 2) 181

Ok, so how do you create an infinite world with procedural generation? You can't limit yourself to, say, a 64-bit int, cause that's not infinite. You could, presumably, use linked lists, but then you'd run into speed issues.

You seem to be assume the use of integers to identify the rooms. And there are many alternatives to linked lists.

A simple method would be to generate a pair of unique strings for each entrance/exit of a room. The first string would identify the current room / board, and the second string could represent the destination room. If you want to get really interesting, you can have one-way doorways, or even a different destination based on various factors. A simple hash table or an indexed database table could be used to locate the rooms. If the target string doesn't have a room associated with it, then you create a new room, save it, and then load the new room.

Just because an exit from one room takes you to a previously visited room doesn't mean the world repeats. In fact, if that never happened, the game would be boringly linear.

There is no reason that the entire world has to be in memory at one time, only the rooms where players are located. When memory gets tight, you can page out any rooms that are now empty, or perhaps where there has been no recent activity. When a new room is loaded, you can control its contents based on if the player has been there before, or if this is the first time that any player has been there within some time period. That would allow some one-time objects, others to be regenerated periodically, other items to be limited to one per party, etc.

Comment Sounds familiar (Score 2) 163

I remember reading similar concerns when PBS came out with a radical new TV program called "Sesame Street." ;^)

It is much easier asking these questions than doing actual research and coming up with some answers. I think a lot depends on what they are doing with technology: if they are reading and learning or just goofing around and wasting time.

I taught college classes for a number of years. Eventually, it became very common for students to bring their laptops with them to class. Some of them followed my lecture notes and tried sample problems. Others read email, web sites, or played games with the sound turned off. As long as they weren't disruptive, I didn't try to stop them.

Of course, K-12 is very different than college, but when I was in high school, I carried a book with me to read when a class got boring. These days I carry several books on my phone in case I get some extra time. My grades were pretty good, so I didn't seem to suffer from not paying attention.

Essentially, the question seems to be: "Does the teacher have to keep the students entertained?" Perhaps it should be phrased: "Does the teacher have to keep the students involved?" Teachers that drone on endlessly, sometimes reading their lecture notes, will have problems. Those that interact with their students and have activities that involve the students will do much better. As always, anything that changes the current situation is suspect.

Comment Re:I got it! (Score 1) 287

"drink more ovaltine"

doh! I knew it. just knew it.

That's great. I'm over 70 and I do indeed remember my Ovaltine decoders. I bet a very large percentage of the people here on /. have no clue what your post was about. Thank you sir, for reminding me of some good childhood memories.

Not only did I get an Ovaltine secret decoder ring, but I made my brother drink it, since I couldn't stand the stuff. ;^)

Image

UK Teen Banned From US Over Obscene Obama Email 555

British teenager Luke Angel has been banned from the US for sending an email to the White House calling President Obama an obscenity. The 17-year-old says he was drunk when he sent the mail and doesn't understand what the big deal is. "I don't remember exactly what I wrote as I was drunk. But I think I called Barack Obama a p***k. It was silly -- the sort of thing you do when you're a teenager and have had a few," he said. The FBI contacted local police who in turn confronted Luke and let him know that the US Department of Homeland Security didn't think his email was funny. "The police came and took my picture and told me I was banned from America forever. I don't really care but my parents aren't very happy," Angel said.
Microsoft

Child Abuse Verdict Held Back By MS Word Glitch 191

An anonymous reader writes "Last week several defendants including one high-profile TV presenter were sentenced in Portugal in what has been known as the Casa Pia scandal. The judges delivered on September 3 a summary of the 2000-page verdict, which would be disclosed in full only three days later. The disclosure of the full verdict has been postponed from September 8 to a yet-to-be-announced date, allegedly because the full document was written in several MS Word files which, when merged together, retained 'computer related annotations which should not be present in any legal document.' (Google translated article.) Microsoft specialists were called in to help the judges sort out the 'text formatting glitch,' while the defendants and their lawyers eagerly wait to access the full text of the verdict."
Earth

Oil-Spotting Blimp Arrives In the Gulf 109

GAMP writes "A Navy blimp to assist oil skimming operations will be arriving to the Gulf Coast Wednesday evening, according to the Unified Command Joint Information Center. 'The airship will operate relatively close to shore, primarily supporting skimmers to maximize their effectiveness,' said US Coast Guard Capt. Kevin Sareault."
Handhelds

Apple Reverses iPad "No Cash Purchase" Policy 377

ZipK writes "After a few days of bad publicity, Apple has reversed its no cash purchase policy, explaining that the policy was originally implemented to limit the number of iPads an individual could buy during the introductory period of short supply. Now that supply has caught up with demand — and the story has hit front pages and gained national attention — Apple has reversed its policy, and taken the opportunity to put a bow on the story by giving the formerly scorned Diane Campbell a free iPad."
Censorship

YouTube Blocked In Pakistan 299

kokoko1 submits this snippet from The Telegraph, which reports that Facebook isn't alone — now YouTube, too, is being censored in Pakistan. "The blocking of YouTube comes a day after a Pakistani court blocked Facebook amid a growing row over a competition on the social networking website to design cartoons of the Prophet Muhammad." Update: 05/20 18:58 GMT by T : According to an anonymous reader, Wikipedia and Flickr are out, too.
Update: 05/21 12:11 GMT by KD : And now add Twitter to the blocked list. This post claims that more than 1,000 sites are being blocked in Pakistan.
Image

Websites That Don't Need to Be Made Anymore 161

They say that imitation is the sincerest form of flattery, but there is a finite number of social networking or selling websites that the world needs. Here is a collection of the eight kinds of websites that absolutely don't need to be made anymore. I'd add dating sites and anybody who uses pop-up ads myself, but I think that would eliminate half the Web.
Education

PA Laptop Spying Inspires FSF Crowdsourcing Effort 135

holmesfsf writes "Creeped out by the Lower Merion School District's remote monitoring of students? Check out the Free Software Foundation's response to the laptop spying scandal and help build a wiki listing of school districts that provide students with laptops, so that the FSF can campaign against mandatory, proprietary laptops."
Science

Why the First Cowboy To Draw Always Gets Shot 398

cremeglace writes "Have you ever noticed that the first cowboy to draw his gun in a Hollywood Western is invariably the one to get shot? Nobel-winning physicist Niels Bohr did, once arranging mock duels to test the validity of this cinematic curiosity. Researchers have now confirmed that people indeed move faster if they are reacting, rather than acting first."
Earth

Dinosaur Feather Color Discovered 219

anzha writes "Do you remember being a kid and told we'd never know what colors the dinosaurs were? For at least some, that's no longer true. Scientists working in the UK and China have closely examined the fossils of multiple theropods and actually found the colors and patterns that were present in the fossilized proto-feathers. So far, the answer is orange, black and white in banded and other patterns. The work also thoroughly thrashes the idea that fossils might not be feathers, but collagen fibers instead. If this holds up, Birds Are Dinosaurs. Period. And colorful!"

Slashdot Top Deals

The optimum committee has no members. -- Norman Augustine

Working...