Web site's "joint-development" advertising model -- using Java as its core technology -- has users and marketers reading off of the same script
Interactive Imaginations, a 75-person company based in New York City, is on the fast track to making Java pay off by offering Web surfers a deal that sponsors canβt resist: Play Riddler. Get stuff.
The bargain is simple: Members sign up by answering a few demographic questions and then get to play interactive brain-teasers that allow them to collect βcaps.β When they collect enough caps they become eligible to win a decent prize from one of the advertisers. Meanwhile, youβre exposed to a little of the sponsorsβ hypertext hype and youβve added your two bits to a valuable marketing database. Sound familiar? Pepsi could roll over and die of envy.
In Riddlerβs joint-development scheme, sponsors are both advertisers and investors, as well as providers of the game prizes. Naturally, the prizes are the attraction to users, consisting of such things as a lease on a Ford Explorer, a nine-day Alaskan vacation, an AcerNote Pentium laptop, and a Kodak digital camera. The advertising is sufferable: to enter a game, you must pass through a small page of hyperlinks from the likes of Apple Computer, Microsoft, NBC, and Toyota. The games are challenging β the crosswords are written by world-champion puzzler Stan Newman of Random House and the riddles and trivia games are written by Harry Eisenberg, formerly of βJeopardy.β Riddler is also in the process of licensing games from sources as disparate as EarthWebβs applet library and the owners of the classic TV show βName That Tune.β The Riddler Web siteβs programmers heavily rely on Java.
Addicted to Java
βWhen we relaunched earlier this year, we went online with three Java game applets,β said Jon Williams, Riddlerβs chief technology officer, a native Australian. βWe wrote those games ourselves, and they took a long time β about 2,000 lines of code a piece. We chose Java because it provides immediate feedback, compared with CGI. The second reason was that it was an ideal way to develop multiplayer games, where three players can compete against one another at the same time.β
Currently, Riddlerβs Java-enabled games include:
- King of the Hill, a multiplayer trivia contest
- Checkered Flag, a multiplayer crossword contest
- Gridlock, a single-player crossword
- Mental Floss, a single-player trivia game (in a hybrid of Java and CGI)
- Klondike, a classic solitaire game available to non-registered users as a sort of demo (without the prizes)
All are intuitive and simple in their presentation. The crossword and trivia games offer three levels of difficulty, so they are appropriate to all age groups. To play a game for a possible prize, you begin by paying a βRiddletβ entry fee. (Riddlets are like chips at a casino. Upon registering with Riddler, you are issued 2500 Riddlets. Your βinventoryβ of Riddlets allows you to either play new games for a payoff in caps or to trade Riddlets directly for caps in a designated area. Caps are what count for gaining prizes.) If you win a game, you are rewarded with a varying number of prize-specific caps. Amass enough caps for a prize over a designated period and it could be yours. The only trouble is that you are competing with thousands of other players to win the coolest prizes.
βWe had data showing users online for 15 or 16 hours at a time originally,β said Jack Bonanni, Interactive Imaginationsβ executive vice president for business development. βThere are limits to anything. So there are some new rules for game availability now. Weβre doing whatever we can to keep things fair.β
More than just fun and games
Interactive Imaginations is using Java for more than just game applets. Riddlerβs designers use Java for many of their under-the-hood applications. And the most important of these concerns is security β no small matter when youβre handing out cars and cruise-ship vacations.
βObviously, a programmer could emulate one of our games and just return a response saying βI wonβ,β said Williams. βAnd they could go on doing this until they had collected enough caps to qualify for a Toyota. So what we did was design an RSA-hybrid encryption algorithm written in a set of Java classes. We took Java RSA, in which we used the ND5 RSA implementation, andβ¦. I guess I better not tell you what we actually did with it. But I can say that we also used some double-encryption, along with another technique I wonβt disclose, just in case someone was able to hack the RSA-hybrid code. So we have a normal server and a Java client, and at the beginning of a game we pass encrypted data about the user ID and the userβs status in the game; and at the end of the game the encrypted results are passed back. That can only happen once, because the security keys are passed back and forth. So this prevents a programmer from logging-in and hacking repeated game wins. And this is all connected in Java.β
Williams takes pride in the prowess of his technical staff. βThe security code was written by a couple of our in-house programmers,β he said. βWe took public-domain RSA code and modified it. Next we took C++ code and converted it into Java, which actually was quite simple.β
Wrapperβs paradise
βFor our new solitaire game, which we licensed from an individual who had posted the applet on Gamelan, we wrapped our Java security code around the original game applet,β Williams said. βAnd we did this in such a way that with very little engineering we can reproduce this technique as often as we want. So now we can license any applet that strikes our fancy and have it up on our site in almost no time at all. The next thing weβre going to do is take our multiplayer capability and turn that into a wrapper for third-party games, too.β
βWe present a unique opportunity for game developers working in Java to have their creations licensed,β said Bonanni. βWe encourage them to contact us.β
ActiveX versus Java
Riddlerβs newest prize game is a palindrome puzzle called !AHA! β collaboration with Microsoft that employs ActiveX for delivery via Internet Explorer 3.0 exclusively. When asked about the differences in working in the two competitive programming languages, Williams was frank. βOne of the things I think is missing with Java is the GUI design environment. When we did the ActiveX project, we had that. So we got to use these great screens, and we had things going within minutes. In Java, thatβs not quite here today. But itβs coming at about a hundred miles per hour down the pike.β Ironically, though, !AHA! is not written completely in ActiveX.
βWe werenβt happy with some of the ActiveX controls, such as the marquee, so we looked at Java,β said Williams. βAnd we found a couple of Java classes that we really liked. So we incorporated them and called them from VB Script. So even in !AHA!, some of the controls are written in Java.β
βOur games are simple to play, but they were not simple to construct,β added Bonanni. βWe use whatever technology fits our needs. Or we will adapt it to improve it for our needs.β
βFor example, we used Visual J++ to develop our own applets,β Williams continued. βWe started using the JDK, but we switched to using J++. One of our hallmarks is that we are not betting on any one technology.β
A conglomeration of components
Riddlerβs next project is a multiplayer version of TVβs βName That Tune.β World Wide Web rights to the show were purchased in August. At the time, Michael Paolucci, CEO of Interactive Imaginations, said, βThe Net is evolving in the same way that television evolved from radio. We believe that classic game-show programming like βName That Tuneβ will quickly move the Web in the direction of competing directly against television.β The difference, of course, will be that instead of watching the game, users will become the contestants. And the challenge before the Riddler technical team, of course, is to integrate sound into their interactive model.
βIt will be handled in the same way we did !AHA!, as a conglomeration of components,β said Williams. βReally, what we like to do is use the simplest tool for the most efficient solution. ActiveX has some things that take five minutes to execute, whereas Java takes an hour. So for some [βName That Tuneβ] things we will use ActiveX. But for the really serious coding of the game, like security, we are still going to use Java.β
When asked about future trends for technology development at Riddler, Williams responded, βWell, thereβs JDBC, thereβs ODBC connectors, thereβs writing Java servers so that we have Java-to-Java and Java-to-Oracle connections β Oracle has Web connectors coming out β and our Oracle database is what allows us to keep track of everything that happens on our system, using a program we wrote ourselves, called Ridmark. NSAPI is interesting, ISAPI is interesting, but Java is open. So weβre ready for anything. We do our own testing to see which systems we ought to use. I think weβre as advanced as any other large Web site that I have knowledge of.β
When pressed on the issue of rewriting Riddlerβs servers in Java, Williams was realistic in his assessment: βMy view is that CGI is really fading into the background,β he said. βAs far as what is going to replace CGI on the server side, Java is probably the number-one contender. I say βcontenderβ because I have reservations β itβs not a completely proven technology. So, again, weβre testing it. But we havenβt come to a decision yet. If we did do it, weβd probably be one of the first. So itβs definitely something weβre contemplating β if you have the whole server written in Java, it becomes portable. However, you are then left obviously with the issues involved in how long it takes to play a game. By writing your server in Java, you already are hit with a 25 percent performance degradation. So we have to address a lot of issues there. The good news for us is that we havenβt fully committed to any of the technologies we use so far. CGI, ActiveX, Java β weβll take advantage of whatever technology it takes to keep us out in front.β
Bonanni said the Riddler site is attracting partners in the companyβs βCommonwealth Networkβ project.
βWe deliver interactive banners to affiliated members on the Web,β Bonanni explained. βThe advertisers include names like Snapple, Microsoft, Apple, and the Cobb Group. This is where we see our business headed, in working with the booming market of independent Internet entrepreneurs, into generating activity and revenue for their sites.β
A soft machine
The folks at Riddler arenβt fooling around in their efforts to cash in on their success in using cutting edge technology and creating compelling content. This past summer they enlisted Softbankβs Interactive Media Sales Group to represent the Commonwealth Network, and already it has signed up more than 1,000 Web sites as affiliates to its new service. Softbank (a competitor of βJavaWorldβsβ parent company, International Data Group) offers affiliation free of charge and pays participating sites on an impression-per-time basis. For Interactive Imaginations, Java is more than a programming language, itβs a central ingredient in the companyβs innovative business model.


