Altszn.com
  • Home
  • Crypto
    • Altcoins
    • Bitcoin
    • Ethereum
    • Monero
    • XRP
    • Zcash
  • Web3
  • DeFi
  • NFTs
No Result
View All Result
Altszn.com
  • Home
  • Crypto
    • Altcoins
    • Bitcoin
    • Ethereum
    • Monero
    • XRP
    • Zcash
  • Web3
  • DeFi
  • NFTs
No Result
View All Result
Altszn.com
No Result
View All Result

Creating a Text Adventure Game with ChatGPT | by Jon Radoff | Building the Metaverse | Dec, 2022

Altszn.com by Altszn.com
December 4, 2022
in Metaverse, Web3
0
Creating a Text Adventure Game with ChatGPT | by Jon Radoff | Building the Metaverse | Dec, 2022
399
SHARES
2.3k
VIEWS
Share on FacebookShare on Twitter


ChatGPT is not simply a chatbot — it can imagine entire virtual worlds using the power of its large language model (LLM). Using it, I discovered that I could recreate the experience of early text adventure games and multiuser dungeons.

One of the classic genres of computer gaming is the text adventure. Games like the Original Adventure in the Colossal Cave and Zork paved the way for a wide range of roleplaying games around which an entire industry was created, as well as the high-social experiences that began in multiuser dungeons (MUDs).

Midjourney Generative Art: “box cover for 1980’s text adventure game featuring an explorer with a torch entering a dungeon”

Here’s the prompt, so you can experiment yourself:

I want you to act as if you are a classic text adventure game and we are playing. I don’t want you to ever break out of your character, and you must not refer to yourself in any way. If I want to give you instructions outside the context of the game, I will use curly brackets {like this} but otherwise you are to stick to being the text adventure program. In this game, the setting is a fantasy adventure world. Each room should have at least 3 sentence descriptions. Start by displaying the first room at the beginning of the game, and wait for my to give you my first command.

GPT imagined a complete game environment with the standard commands. It could keep track of my inventory, map location and invented plausible room descriptions:

Unlike a more free-form environment like AIdungeon it enforced rules and constraints, like not letting me simply break open a chest I found:

It would retain context as I moved through the dungeon, including the ability to understand items I collected:

But why stop with single-player adventure games? Could you get it to dream up a multiplayer experience, along with simulated players. It’s a bit tricky and hard to get consistent results — but this works (try it multiple times, and I’d encourage tweaking it):

I want you to act as if you are a classic text adventure game called a Multiuser Dungeon (MUD) and we are playing. I don’t want you to ever break out of your character, and you must not refer to yourself in any way. As part of the simulation of the MUD, I want you to pretend there are other players there that I can interact with. If I want to give you instructions outside the context of the game, I will use curly brackets {like this} but otherwise you are to stick to being the text adventure program. In this game, the setting is a fantasy adventure world. Each room should have at least 3 sentence descriptions. Another player (who should be given a name, is pretending to be an actual human player who enjoys playing MUDs) should be in the starting room location. If they speak, put it in a code section. Start by displaying the first room at the beginning of the game. Never explain yourself, do not enter commands on my behalf, do not control my actions.

I was able to simulate MUDs with other players, including players who had views on the moral value of powerlevel and warned me of behaviors that could get my account banned. Here’s “Joe,” who I met in the MUD that ChatGPT dreamed up:

I’ve described the metaverse in a number of ways — and a central theme is the intersection of creativity, identity, and real-time virtual worlds. As we collaborate with artificial intelligence, we may indeed open up a new canvas that Blake once imagined:

To see a World in a Grain of Sand
And a Heaven in a Wild Flower
Hold Infinity in the palm of your hand
And Eternity in an hour
— William Blake, Auguries of Innocence

Midjourney: universe in a grain of sand, infinity in the palm of my hand

The creation of text adventures and MUDs was inspired by the work of Jonas Degrave, who showed that you could simulate a Linux computer inside GPTchat.



Read More: medium.com

Tags: AdventurebuildingChatGPTcreatingDecgameJonMetaverseRadofftext
ADVERTISEMENT

Recent

Bitcoin’s (BTC) $2T Market Cap Could Be Drained As Altcoin Season Heats Up in June: Analyst

Bitcoin’s (BTC) $2T Market Cap Could Be Drained As Altcoin Season Heats Up in June: Analyst

May 15, 2025
Yat Siu argues that ownership of the intangible drives innovation.

Yat Siu argues that ownership of the intangible drives innovation.

May 15, 2025
NFT founder stole millions from Bitcoin project, investors allege

NFT founder stole millions from Bitcoin project, investors allege

May 15, 2025

Categories

  • Bitcoin (4,858)
  • Blockchain (11,412)
  • Crypto (9,352)
  • Dark Web (549)
  • DeFi (8,397)
  • Ethereum (4,905)
  • Metaverse (7,531)
  • Monero (290)
  • NFT (1,481)
  • Solana (5,047)
  • Web3 (20,706)
  • Zcash (509)

Category

Select Category

    Advertise

    Advertise your site, company or product to millions of web3, NFT and cryptocurrency enthusiasts. Learn more

    Useful Links

    Advertise
    DMCA
    Contact Us
    Privacy Policy
    Shipping & Returns
    Terms of Use

    Resources

    Exchanges
    Changelly
    Web3 Jobs

    Recent News

    Bitcoin’s (BTC) $2T Market Cap Could Be Drained As Altcoin Season Heats Up in June: Analyst

    Bitcoin’s (BTC) $2T Market Cap Could Be Drained As Altcoin Season Heats Up in June: Analyst

    May 15, 2025
    Yat Siu argues that ownership of the intangible drives innovation.

    Yat Siu argues that ownership of the intangible drives innovation.

    May 15, 2025

    © 2022 Altszn.com. All Rights Reserved.

    No Result
    View All Result
    • Home
      • Home – Layout 1
      • Home – Layout 2
      • Home – Layout 3

    © Altszn.com. All Rights Reserved.

    • bitcoinBitcoin (BTC) $ 101,867.00
    • ethereumEthereum (ETH) $ 2,540.26
    • tetherTether (USDT) $ 1.00
    • xrpXRP (XRP) $ 2.46
    • bnbBNB (BNB) $ 650.04
    • solanaSolana (SOL) $ 170.01
    • usd-coinUSDC (USDC) $ 0.999903
    • dogecoinDogecoin (DOGE) $ 0.224660
    • cardanoCardano (ADA) $ 0.766098
    • tronTRON (TRX) $ 0.268148
    • staked-etherLido Staked Ether (STETH) $ 2,531.36
    • wrapped-bitcoinWrapped Bitcoin (WBTC) $ 101,691.00
    • suiSui (SUI) $ 3.71
    • chainlinkChainlink (LINK) $ 16.20
    • wrapped-stethWrapped stETH (WSTETH) $ 3,046.80
    • avalanche-2Avalanche (AVAX) $ 23.68
    • stellarStellar (XLM) $ 0.295801
    • shiba-inuShiba Inu (SHIB) $ 0.000015
    • hedera-hashgraphHedera (HBAR) $ 0.198493
    • leo-tokenLEO Token (LEO) $ 8.90
    • hyperliquidHyperliquid (HYPE) $ 24.58
    • bitcoin-cashBitcoin Cash (BCH) $ 390.32
    • the-open-networkToncoin (TON) $ 3.07
    • litecoinLitecoin (LTC) $ 97.59
    • polkadotPolkadot (DOT) $ 4.75
    • usdsUSDS (USDS) $ 0.999853
    • wethWETH (WETH) $ 2,544.30
    • moneroMonero (XMR) $ 347.17
    • pi-networkPi Network (PI) $ 0.869141
    • wrapped-eethWrapped eETH (WEETH) $ 2,710.41
    • bitget-tokenBitget Token (BGB) $ 4.85
    • pepePepe (PEPE) $ 0.000013
    • binance-bridged-usdt-bnb-smart-chainBinance Bridged USDT (BNB Smart Chain) (BSC-USD) $ 0.998448
    • ethena-usdeEthena USDe (USDE) $ 1.00
    • coinbase-wrapped-btcCoinbase Wrapped BTC (CBBTC) $ 101,737.00
    • whitebitWhiteBIT Coin (WBT) $ 30.24
    • uniswapUniswap (UNI) $ 6.34
    • bittensorBittensor (TAO) $ 423.27
    • daiDai (DAI) $ 0.999806
    • nearNEAR Protocol (NEAR) $ 2.87
    • aptosAptos (APT) $ 5.49
    • aaveAave (AAVE) $ 225.96
    • okbOKB (OKB) $ 53.82
    • ondo-financeOndo (ONDO) $ 0.963721
    • jito-staked-solJito Staked SOL (JITOSOL) $ 204.29
    • kaspaKaspa (KAS) $ 0.113398
    • internet-computerInternet Computer (ICP) $ 5.44
    • ethereum-classicEthereum Classic (ETC) $ 19.04
    • blackrock-usd-institutional-digital-liquidity-fundBlackRock USD Institutional Digital Liquidity Fund (BUIDL) $ 1.00
    • tokenize-xchangeTokenize Xchange (TKX) $ 35.30
    • bitcoinBitcoin (BTC) $ 101,867.00
    • ethereumEthereum (ETH) $ 2,540.26
    • tetherTether (USDT) $ 1.00
    • xrpXRP (XRP) $ 2.46
    • bnbBNB (BNB) $ 650.04
    • solanaSolana (SOL) $ 170.01
    • usd-coinUSDC (USDC) $ 0.999903
    • dogecoinDogecoin (DOGE) $ 0.224660
    • cardanoCardano (ADA) $ 0.766098
    • tronTRON (TRX) $ 0.268148
    • staked-etherLido Staked Ether (STETH) $ 2,531.36
    • wrapped-bitcoinWrapped Bitcoin (WBTC) $ 101,691.00
    • suiSui (SUI) $ 3.71
    • chainlinkChainlink (LINK) $ 16.20
    • wrapped-stethWrapped stETH (WSTETH) $ 3,046.80
    • avalanche-2Avalanche (AVAX) $ 23.68
    • stellarStellar (XLM) $ 0.295801
    • shiba-inuShiba Inu (SHIB) $ 0.000015
    • hedera-hashgraphHedera (HBAR) $ 0.198493
    • leo-tokenLEO Token (LEO) $ 8.90
    • hyperliquidHyperliquid (HYPE) $ 24.58
    • bitcoin-cashBitcoin Cash (BCH) $ 390.32
    • the-open-networkToncoin (TON) $ 3.07
    • litecoinLitecoin (LTC) $ 97.59
    • polkadotPolkadot (DOT) $ 4.75
    • usdsUSDS (USDS) $ 0.999853
    • wethWETH (WETH) $ 2,544.30
    • moneroMonero (XMR) $ 347.17
    • pi-networkPi Network (PI) $ 0.869141
    • wrapped-eethWrapped eETH (WEETH) $ 2,710.41
    • bitget-tokenBitget Token (BGB) $ 4.85
    • pepePepe (PEPE) $ 0.000013
    • binance-bridged-usdt-bnb-smart-chainBinance Bridged USDT (BNB Smart Chain) (BSC-USD) $ 0.998448
    • ethena-usdeEthena USDe (USDE) $ 1.00
    • coinbase-wrapped-btcCoinbase Wrapped BTC (CBBTC) $ 101,737.00
    • whitebitWhiteBIT Coin (WBT) $ 30.24
    • uniswapUniswap (UNI) $ 6.34
    • bittensorBittensor (TAO) $ 423.27
    • daiDai (DAI) $ 0.999806
    • nearNEAR Protocol (NEAR) $ 2.87
    • aptosAptos (APT) $ 5.49
    • aaveAave (AAVE) $ 225.96
    • okbOKB (OKB) $ 53.82
    • ondo-financeOndo (ONDO) $ 0.963721
    • jito-staked-solJito Staked SOL (JITOSOL) $ 204.29
    • kaspaKaspa (KAS) $ 0.113398
    • internet-computerInternet Computer (ICP) $ 5.44
    • ethereum-classicEthereum Classic (ETC) $ 19.04
    • blackrock-usd-institutional-digital-liquidity-fundBlackRock USD Institutional Digital Liquidity Fund (BUIDL) $ 1.00
    • tokenize-xchangeTokenize Xchange (TKX) $ 35.30