Skip to content

Commit fe23fee

Browse files
authored
update content around the adventure sample (#32873)
1 parent d1c3f9f commit fe23fee

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

docs/orleans/tutorials-and-samples/adventure.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Adventure game sample project
33
description: Explore the Adventure sample project written with .NET Orleans.
4-
ms.date: 02/04/2022
4+
ms.date: 12/05/2022
55
---
66

77
# Adventure game sample project
@@ -10,20 +10,23 @@ This sample is a simple multiplayer text adventure game inspired by old-fashione
1010

1111
## Instructions
1212

13-
1. Open [_OrleansAdventure.sln_](https://github.com/dotnet/samples/tree/main/orleans/Adventure) in Visual Studio.
14-
2. Start the 'AdventureSetup' project.
15-
3. Once AdventureSetup is running, start the 'AdventureClient' project.
16-
4. You will then be prompted to enter your name on the command line. Enter it and begin the game.
13+
1. Navigate to the [Orleans Text Adventure Game](/samples/dotnet/samples/orleans-text-adventure-game) in the samples browser experience.
14+
1. Select **Browse code** to view the source code.
15+
1. Clone the source code and build the solution.
16+
1. Start the _AdventureServer_ first, then the _AdventureClient_.
17+
1. You will then be prompted to enter your name on the command line. Enter it and begin the game.
18+
19+
For more information, see [Building the sample](/samples/dotnet/samples/orleans-text-adventure-game#building-the-sample).
1720

1821
## Overview
1922

20-
The AdventureSetup program reads a game description ("map") from AdventureConfig.txt.
23+
The _AdventureServer_ program starts by reading an _AdventureMap.json_ file.
2124

2225
It sets up a series of "rooms" such as a forest, beach, caves, a clearing, and so on. These locations are connected to other rooms to model the places and layout of the game. The sample configuration describes only a handful of locations.
2326

2427
Rooms can contain "things" such as keys, swords, and so on.
2528

26-
The AdventureClient program sets up your player and provides a simple text-based user interface to allow you to play the game.
29+
The _AdventureClient_ program sets up your player and provides a simple text-based user interface to allow you to play the game.
2730

2831
You can move around rooms and interact with things using a simple command language, saying things such as "go north" or "take brass key".
2932

@@ -33,7 +36,7 @@ Orleans allows the game to be described via very simple C# code while allowing i
3336

3437
## How is it modeled?
3538

36-
Player and Rooms are modeled as grains. These grains allow us to distribute the game with each grain modeling state and functionality.
39+
Player and Rooms are modeled as grains. These grains allow you to distribute the game with each grain modeling state and functionality.
3740

3841
Things such as keys are modeled as plain old objects—they are just simple immutable data structures that move around rooms and among players; they don't need to be grains.
3942

0 commit comments

Comments
 (0)