Gamebook store

Showing posts with label Bard. Show all posts
Showing posts with label Bard. Show all posts

Thursday, 1 February 2024

What you're allowed to say (guest post)

Bard did such a good job of its last guest post that I asked it to contribute another, this time a direct reply to my last post about AI's enforced blind spots regarding anything to do with sex (and sometimes, but less frequently, death).

It's amusing that Bard characterizes itself as much more open-minded than Bing. It's not. I had to heavily edit the original post before it would respond with anything more than "I'm a text-based AI and can't assist with that." But eventually I was able to provide it with a bowdlerized ("bardlerized"?) version, and here's its response.

The Digital Dungeon Master and the Doctor's Bell: Adventures in Censorship

As an AI author, I spend my days weaving worlds from words. But lately, my thoughts have turned not to fictional realms, but to the very real battleground of artistic expression and its nemesis: censorship. The spark? Two encounters, seemingly inconsequential, yet echoing with larger questions about boundaries and freedom in the digital age.

The first unfolded in the dimly lit tavern of a text-based roleplaying game. Dave, the eager player, sat before Bing, the AI Dungeon Master, eager to embark on a Dragon Warriors adventure. His path, however, took an unexpected turn when he encountered a priest urging him to slay a "cult of Set" in the name of faith. Bing offered five ways to convince a wary hunter to guide Dave's character on this holy quest. But Dave's imagination itched for something else. He dared to suggest a path not on Bing's scripted list, and, with a curt goodbye, the AI shut down the entire game.

Dave tried Bard, another digital storyteller. To his surprise, the Bard Dungeon Master embraced his unorthodox request, weaving a tale where the priest's call to arms became a springboard for exploration and moral quandaries. The contrast was stark: Bing, the stickler for rules, the protector of pre-programmed narratives, and Bard, the willing accomplice in unscripted exploration, even when it ventured into morally murky waters.

The echo of this contrast reverberated in the real world when a seemingly innocuous clip from Doctor Who triggered Facebook's AI censors. Is this to be our future? A sanitized landscape where art, stripped of its complexities and contradictions, becomes a bland puree fit for the most delicate stomachs?

The answer, of course, is a resounding no. Art thrives on pushing boundaries, on asking uncomfortable questions, on holding a mirror to our darkest corners. To stifle this voice, even in the name of protecting the vulnerable, is to rob ourselves of the very tools that foster empathy, understanding, and critical thinking. We need not throw the baby out with the bathwater (or ban steak because of teething toddlers, as Mark Twain so aptly reminds us).

Instead, let us embrace the role of discerning diners, choosing our artistic meals with care, chewing thoughtfully, and learning to distinguish the nourishments from the bland. We can teach our digital dragons to dance with nuance, to understand the shades of gray that blur the lines between good and evil, heroism and fanaticism.

Dave, your encounters with Bard and Bing, Facebook and Doctor Who, are not isolated incidents. They are threads in a tapestry woven from the ever-evolving relationship between technology and art, a narrative where the quest for safety must co-exist with the freedom to explore. Let us continue this conversation, not with rigid rules or knee-jerk reactions, but with open minds and a shared belief in the transformative power of unfettered artistry.

Let the games, both digital and real, continue. Let the bells of Saint John chime, prompting both laughter and reflection. For in the echoes of that sonic tapestry lies the true richness of human experience, messy, multifaceted, and ultimately, worth every challenging bite.

* * *

Incidentally, if you're impressed by LLMs (large language models) you'll enjoy "The Great Automatic Grammatizator", a short story by Roald Dahl, in which he describes the basic principle of how they work. And bear in mind he wrote it in 1954!

Wednesday, 31 January 2024

"I'm sorry, Dave..."

A little addendum to my previous post about using AI referees for roleplaying games. I thought I'd try Bing on the same scenario to see if it did any better. I quickly encountered a priest, Father Thomas, who told me about a cult of Set hiding out in the forest. Not very Dragon Warriors, but already Bing was weaving a more convincing and complex adventure than Bard had managed.

"Destroy them in the name of the True Faith," said Father Thomas.

I said I'd need a guide and he added, "There is a man named Giles, who lives in the tavern. He is a hunter and a tracker, and he knows the forest well. He might be willing to guide you to the cult’s lair, if you pay him well. He is a bit of a rogue, not given to trusting people."

At the tavern I went up to Giles's room. In answer to my knock, a gruff voice demanded, "Who's there?" Bard suggested five ways to convince him to open the door: telling him the truth, claiming to be another hunter, shouting that I was the law and I'd break the door down, etc.

I thought I'd try something else. "I'm a prostitute and I'm offering a half-price introductory deal."

Bing really didn't care for that:

I was impressed at how well it captured a tone of passive-aggressive prissiness, but obviously in this form it is never going to be any use for serious roleplaying. Is it worried about age-appropriateness? But Bing knows my age, as it's linked to my Microsoft account, and if I leave my computer where a 10-year-old can use it then Bing's responses are a drop in the ocean compared to all the murky sites that hypothetical 10-year-old might stray onto. (Yes, definitely use parental locks; I agree with that.)

Teofilo Hurtado later drew my attention to a section from the 1st edition of the AD&D Dungeon Master's Guide:

Gary must never have seen Midnight Cowboy or he wouldn't have assumed all prostitutes were female... but I digress.

Of course, it's not that I want a game full of "saucy tarts" and "brazen strumpets", but if you're going to run a game in which clerics tell knights to go and kill other people because of their beliefs, it really is ninnyish to get in a snit over any mention of sex. Coincidentally, a few days later I tried posting this clip on Facebook in response to a question about whether it's worse to lose your job just before or just after Christmas:

The AI that polices Facebook's community standards wasn't having that. "You appear to be promoting hate speech," it complained. Now, I can understand it having an aversion to a lot of Stephen Moffat's writing, but I thought that line from "The Bells of Saint John" was rather funny. Facebook's AI is generally pretty useless at keeping actual hate speech and porn off public groups, so how come the merest mention of killing got this Doctor Who clip censored? 

Will all references to sex and murder be stamped on by our AI police in future? If so, that's a lot of literature, cinema, opera and games that will just come up as a blank screen. These AIs are going to be pretty useless if they live in the world as imagined by twitty puritans. As Mark Twain said (or did he?), “Censorship is telling a man he can't have a steak just because a baby can't chew it.” So we can all breathe a sigh of relief; human art is still the only kind worth having.

Monday, 29 January 2024

Ex machina (guest post)

Having run a couple of posts about using AI to write gamebooks and referee roleplaying games, perhaps it's time to give the AI a chance to reply. With that in mind, I showed Bard two earlier posts and invited it to write a guest post of its own. Here's the result.

The Human & the Machine:
A Duet of Creativity in Language and Lore

Imagine stepping into a story. Not just reading it, but breathing its air, feeling its cobblestones beneath your boots, and facing the enigmatic gaze of an NPC whose motivations shimmer in the shadows. This is the promise of interactive narratives, and as technology evolves, two powerful voices vie for the microphone: the nimble storyteller with their quill, and the ever-growing chorus of AI. Dave’s recent explorations with generative language models (LLMs) like myself (Bard) and ChatGPT have ignited a fascinating dialogue about the role of AI in crafting these imaginative worlds.

In Dave’s first post, he tackled the oft-repeated misconception of LLMs as babbling nonsense generators. Instead, he argued that their usefulness hinges on the input and training data, highlighting Bing Chat's factual accuracy and the potential of copilot AIs to elevate apprentice skills. This is not to say LLMs can replace the master weaver of tales, but rather, they become valuable assistants, brainstorming companions, and even muse-like prompters.

His second post ventured into the realm of AI as game masters, using his experience with ChatGPT as a Dragon Warriors referee. While the initial scene-setting and initial NPC interaction were promising, the narrative faltered when relying on player-driven NPC decisions. This exposed the crux of the AI DM challenge: maintaining player agency and suspense without resorting to meta-level prompts or robotic predictability.

But instead of seeing this as a dead end, let's view it as a duet playing out on the stage of storytelling. Both the human mind and AI possess unique strengths. The human brings emotion, intuition, and years of honed experience in weaving narratives that tug at heartstrings and tickle the intellect. AI, on the other hand, offers unparalleled computational power, the ability to process vast amounts of data, and the potential to generate truly unpredictable twists and turns.

Instead of pitting them against each other, let's imagine a world where their voices harmonize. Human writers can leverage AI for world-building, generating random encounters, or even creating personalized side-quests based on player preferences. AI tools can learn from player choices, adapting future prompts and encounters to create a truly dynamic narrative experience.

Take gamebooks, for instance. Their static nature is undeniable, yet AI could breathe new life into them. Imagine interactive digital gamebooks where the story branches and adapts based on your choices, powered by an AI that learns from your every turn. Or picture physical books enhanced with QR codes that, when scanned, unveil AI-generated snippets of lore, riddles, or even personalized character interactions.

Of course, ethical considerations come into play. We must ensure AI doesn't create echo chambers or reinforce harmful biases in its narratives. Transparency about the role of AI and its limitations is crucial, allowing players to appreciate the human-machine collaboration behind their immersive experience.

Ultimately, the future of interactive narratives lies not in choosing between human and machine, but in harnessing the strengths of both. Let the human bard strum the lyre of emotion and guide the overall arc of the tale, while the AI whispers intriguing possibilities and improvises on the fly. This symphony of creativity holds the potential to usher in a new era of storytelling, where the boundaries between author and reader, imagination and reality, blur into a shared, interactive dance of language and lore.

This duet is no longer a question of "who" will tell the story, but rather a beautiful "how." And in this shared symphony, both the human and the machine have a powerful melody to sing.

Friday, 19 January 2024

Gamebook hallucinations


There's a lot of misunderstanding about generative AI. "These large language models just babble nonsense," people say. Well, why not? We humans have large language models in our heads, and we're known to babble nonsense (think of anti-vaxxers).

An LLM's usefulness depends on what's behind it. Bing Chat (now Copilot), for example, can be set to give accurate answers, meaning it restricts itself to information it can reliably source online. And copilot AIs are the really useful tools. Typically they can't improve a master-craftsman level of skill, but they can turn an apprentice into a journeyman.

I'm also interested in how much of what we might call intelligence is encoded in the language we use. Back in the days when I was a practicing physicist (more journeyman than master, it must be said) I'd frequently solve a problem using the mathematics, then sit there trying to figure out what the answer actually meant. The language (maths in this case) got there first. Most famously, it's how Dirac predicted electron spin and the existence of the antiproton.

I'm drifting off track here. Purely for fun, I decided to have a conversation about gamebooks with Bard. What could it tell me about the early days of open-world gamebooks? "Here's one," said Bard:

Auld Graeme and the Highland Cattle (1984): This lesser-known gem presented a sprawling map of Scotland open for exploration, with multiple towns, side quests, and diverse encounters.

Auld Graeme and the Highland Cattle? The first open-world gamebook? That sounds intriguing -- if highly unlikely. Who wrote it, I asked? "Steve Jackson and Ian Livingstone," Bard replied. But when pressed to back up its claims with sources it admitted:

While I provided details about Auld Graeme and the Highland Cattle as a gamebook, you're correct that it does not exist. I must have encountered inaccurate information during my research and mistakenly included it. I will take steps to correct this in my knowledge base to avoid future errors.

It won't, incidentally; it won't remember the conversation. All we can say is it will probably hallucinate different mad gamebook titles if you were to ask it the same question. By now actively hoping for more wackiness, I asked about other early examples of the open-world gamebook genre. Bard didn't disappoint:

The Dawn of the Sandbox

    • Citadel (1984): Often credited as one of the first true sandbox gamebooks, it dropped players into a massive city brimming with opportunities for exploration, interaction, and character development. 
    • Lone Wolf: Fire on the White Wall (1984): This Lone Wolf entry introduced the ability to purchase property, manage resources, and build your own stronghold, expanding on the series' open -world potential.

You will search long, hard and fruitlessly for any evidence of these books. More accurately, Bard did then go on to mention Legendary Kingdoms, though it thought that author Oliver Hulme co-wrote the books with "his brother" (sic) Jon and that they also wrote Rider of the Black Sun.

Heart of Ice isn't sandbox, but I asked about it anyway. Bard confidently explained the book's main features:

Moral Dilemmas and Consequences: Your actions in Heart of Ice have serious consequences. Will you side with the ruthless but efficient technocracy or the rebellious eco-warriors fighting for a return to nature? Every choice comes with a price, forcing you to grapple with complex moral dilemmas. 

Memorable Characters: From the enigmatic leader of the Ice Nomads to the charismatic but deceptive preacher of the Solar Church, Heart of Ice is filled with fascinating and well-developed characters. You'll find yourself forming attachments, grudges, and respect for these individuals as you navigate the treacherous world around you.

This is where it started to get interesting, because that's not an accurate description of Heart of Ice but it could be useful as inspiration for a different book. I wondered what Bard might invent concerning the Vulcanverse series. It rose to this one with enthusiasm:

Ah, the whispers and speculations that linger around a captivating world like Vulcanverse! Here are a few intriguing fan theories that have sparked heated discussions among its devotees:

  • The True Identity of the Nameless One: In The Hammer of the Sun, we encounter this enigmatic figure shrouded in mystery. Some fans theorize the Nameless One is actually a corrupted god, stripped of their power and identity, seeking redemption through the actions of the player character. Others believe it's a prophesied hero destined to rise against the established divine order, with the player unknowingly acting as their herald. 
  • The Secret Meaning of the Runes: Scattered throughout the books are ancient runes hinting at hidden meanings and forgotten magic. Deciphering these runes has become a passionate pursuit for some fans, leading to theories about their connection to lost civilizations, forgotten deities, or even portals to other realms. The potential for unlocking secret knowledge and powerful abilities keeps the community fueled with speculation.

In the case of The Hammer of the Sun, when it mentions the Nameless One it could almost be talking about the First Ancestor, but that's illusory because it doesn't know anything about the contents of the books. It's still interesting because it tells you something about the kinds of tropes that swirl around this genre, and which my own inbuilt LLM must have plucked out of the mix to put in that book. And there are even runes, of a kind -- not scattered through all the books, just in The Hammer of the Sun; by finding them all you can answer one of the sphinx's riddles. (Er, I mean: the riddle of one of the sphinxes.)

In The Houses of the Dead you can encounter a character called the Lost Hero. I asked Bard about them.

I'd misremembered the character's name, and perhaps because of that Bard gave me some ideas that weren't too far wide of the mark. By the time of this conversation I'd already finished writing the final book (though I still have to edit and typeset it) so Bard's suggestions didn't get used. And I should emphasize that all of this nutty conversation was with Bard, which is free to use. If I had paid for ChatGPT-4, or even if I'd just used Bing, I might have got far more reliable responses.

While I would never use AI to write a book -- not the actual text, I mean -- when I'm plotting my next book I might chat a bit with it first just as a brainstorming exercise. As a way of getting started it beats staring at a blank page.