@using PlotLine.Models.WritingSolver @model SolverJourney @{ Layout = "_PublicLayout"; var next = Model.Outcome.Next; var beginning = Model.Outcome.Answers.Count == 0; }

The Writing Problem Solver

@if (Model.Error is not null) {

@Model.Error

} @if (beginning) {

What’s getting in the way
of your writing?

Tell us what’s making your novel more complicated than it should be,
and we’ll help you find a way to get it under control.

} @if (next is not null) {
@Html.AntiForgeryToken()
@next.Title

@next.Help

@foreach(var choice in next.Choices.Where(c => c.Active).OrderBy(c => c.Order)) { }
@if (ViewData["BackState"] is string back) { ← Back }
} else {

✓ Here’s a useful way forward

@if(Model.Outcome.Solutions.Count == 0) {

Let’s give this a little breathing room.

There isn’t enough evidence for a specific recommendation yet. Try naming one scene or thread that feels difficult, then ask what you need to know about it next.

You can explore the advice below, or restart with a different area.

} @foreach(var solution in Model.Outcome.Solutions) { }
@if (ViewData["BackState"] is string resultBack) { ← Back } Start again
} @if(Model.Outcome.Answers.Count > 0) { } else {

A few quiet minutes · No sign-up required · Advice you can use straight away

} @if(Model.Graph.IsDemo) {

Preview journey · This small plot-line demonstration will grow into a curated collection of writing problems.

}

A little help, whenever you need it.

You can read this advice directly, without starting the conversation.

@foreach(var solution in Model.Graph.Solutions.Where(s=>s.Active).OrderBy(s=>s.Order)) { @solution.PageTitle → }
@section Scripts { }