Skip to content
Permalink
Browse files
Merge pull request #1 from lycette2/blakeb-patch-1
Add files via upload - first merge
  • Loading branch information
lycette2 committed Oct 1, 2020
2 parents 05e80e1 + e9cc730 commit 99046351c2493944a3ee7b41c8568fa0c29093f9
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 0 deletions.
@@ -0,0 +1,33 @@

#Module formatting into story dictionary, 0:text where 0 is the index number of the module and text is the text of the module. \n=linebreak
story={0:"You are reading a magazine. The phone rings.\n (1)continue reading the magazine and ignore the call \n (2)Inspect the room \n (3)you pick up the phone", 1:"[{You pick up the phone section}]", 2:"hi", 3:"OOOP", 4: "AAAAAA"}
y = 0
moduleProgressList = []

while True:
if y > -1:
moduleProgressList.append(y) #Adds the current module to the list of travelled modules
text = story[y]
print(text) #Displays module text based on y value recieved
x = input("Your choice is...")
if x.isdigit() == False: #This determines whether the value input is a digit
while x.isdigit() ==False:
print("This is an invalid input")
x = input("Your choice is...")
choiceNumber = int(x)
y = choiceNumber #y is the target module as chosen by the user input
else:
while y != int or ( y < 0):
print("This is an invalid input")
x = input("Your choice is...")
if x.isdigit() == False:
while x.isdigit() ==False:
print("This is an invalid input")
x = input("Your choice is...")
choiceNumber = int(x)
y = choiceNumber #This ensures that only valid numbers





@@ -0,0 +1,35 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>5a2aedf8-4803-4ed5-9b52-33877185571f</ProjectGuid>
<ProjectHome>.</ProjectHome>
<StartupFile>InteractiveStoryPythonConversionProject.py</StartupFile>
<SearchPath>
</SearchPath>
<WorkingDirectory>.</WorkingDirectory>
<OutputPath>.</OutputPath>
<Name>InteractiveStoryPythonConversionProject</Name>
<RootNamespace>InteractiveStoryPythonConversionProject</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<DebugSymbols>true</DebugSymbols>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<DebugSymbols>true</DebugSymbols>
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
</PropertyGroup>
<ItemGroup>
<Compile Include="InteractiveStoryPythonConversionProject.py" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets" />
<!-- Uncomment the CoreCompile target to enable the Build command in
Visual Studio and specify your pre- and post-build commands in
the BeforeBuild and AfterBuild targets below. -->
<!--<Target Name="CoreCompile" />-->
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
</Project>
@@ -0,0 +1,23 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30517.126
MinimumVisualStudioVersion = 10.0.40219.1
Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "InteractiveStoryPythonConversionProject", "InteractiveStoryPythonConversionProject.pyproj", "{5A2AEDF8-4803-4ED5-9B52-33877185571F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{5A2AEDF8-4803-4ED5-9B52-33877185571F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5A2AEDF8-4803-4ED5-9B52-33877185571F}.Release|Any CPU.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {4686DB6A-A6AF-498B-8F1C-3090F980BC0F}
EndGlobalSection
EndGlobal

0 comments on commit 9904635

Please sign in to comment.