Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 0f07934

Browse files
committed
added test_overview for testing of the new assess and datafile components.
1 parent e003cb3 commit 0f07934

File tree

1 file changed

+143
-0
lines changed

1 file changed

+143
-0
lines changed
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
.. Copyright (C) Brad Miller, David Ranum, Jeffrey Elkner, Peter Wentworth, Allen B. Downey, Chris
2+
Meyers, and Dario Mitchell. Permission is granted to copy, distribute
3+
and/or modify this document under the terms of the GNU Free Documentation
4+
License, Version 1.3 or any later version published by the Free Software
5+
Foundation; with Invariant Sections being Forward, Prefaces, and
6+
Contributor List, no Front-Cover Texts, and no Back-Cover Texts. A copy of
7+
the license is included in the section entitled "GNU Free Documentation
8+
License".
9+
10+
11+
.. shortname:: Overview
12+
.. description:: This is an overview chapter for the web site.
13+
14+
.. setup for automatic question numbering.
15+
16+
.. qnum::
17+
:start: 1
18+
:prefix: sc-1-
19+
20+
21+
An Overview of Runestone Interactive
22+
====================================
23+
24+
Runestone Interactive is a project focusing on providing tools and content for the purpose of
25+
creating interactive computer science courseware. We provide a complete introductory series of chapters
26+
that can be used as is, or if you wish, you can customize the chapters. You can even start
27+
from scratch and write your own interactive textbook using the tools that we provide.
28+
In order to see how the tools work, the following sections will show them in action.
29+
30+
31+
.. datafile:: df1
32+
33+
def main():
34+
print("Hello world")
35+
return 45
36+
37+
38+
.. activecode:: activecode1
39+
40+
.. timed:: timed1
41+
:timelimit: 10
42+
43+
.. mchoice:: 1524142112
44+
:timed:
45+
:correct: a
46+
:answer_a: Red pill
47+
:answer_b: Blue pill
48+
:feedback_a: Time to see how far the rabbit hole goes.
49+
:feedback_b: Wrong answer.
50+
51+
Choose the red pill or the blue pill...
52+
53+
54+
55+
.. mchoice:: 152414d
56+
:timed:
57+
:multiple_answers:
58+
:correct: a, c
59+
:answer_a: Answer a
60+
:answer_b: Answer b
61+
:answer_c: Answer c
62+
:feedback_a: Feedback for a
63+
:feedback_b: Feedback for b
64+
:feedback_c: Feedback for c
65+
66+
Here is the question...
67+
68+
.. fillintheblank:: fill1412
69+
:timed:
70+
71+
.. blank:: blank21
72+
:correct: \\b31\\b
73+
:feedback1: ("\\b25\\b", "NOOOOOOOOO NOT 25")
74+
:feedback2: (".*", "You don't know your octal numbers...")
75+
76+
What is the octal of 25? Don't say 25.
77+
78+
.. blank:: blank123
79+
:correct: 12
80+
:feedback1: (".*", "There's no 12 in that string!")
81+
82+
Please write down 12 here. Please.
83+
84+
.. blank:: blank34
85+
:correct: 44
86+
:feedback1: ("1", "nope")
87+
:feedback2: ("4", "close")
88+
:feedback3: (".*", "Sorry bro")
89+
90+
Show me 44!
91+
92+
.. mchoice:: 1524142112
93+
:correct: b
94+
:answer_a: Peanuts
95+
:answer_b: Cashews
96+
:feedback_a: They're ok, but cashews are better.
97+
:feedback_b: Good job.
98+
99+
Peanuts or cashews?
100+
101+
102+
103+
.. mchoice:: 152414d
104+
:multiple_answers:
105+
:correct: a, c
106+
:random:
107+
:answer_a: Hi
108+
:answer_b: Bye
109+
:answer_c: Aloha
110+
:feedback_a: Feedback for Hi
111+
:feedback_b: Feedback for Bye
112+
:feedback_c: Feedback for Aloha
113+
114+
Here is the question...
115+
116+
.. fillintheblank:: fill1412
117+
118+
.. blank:: blank21
119+
:correct: \\bblue\\b
120+
:feedback1: ("\\bred\\b", "You are an awful person.")
121+
:feedback2: (".*", "(Hint: Sail Norse)")
122+
123+
What is the best color?
124+
125+
126+
127+
128+
129+
What To Do Now
130+
--------------
131+
132+
Now that you have seen some of these tools in action, you can do more exploration by going back to the Runestone Interactive
133+
site and choosing the courseware examples that we have already created. The first,
134+
**How to Think Like a Computer Scientist: Interactive Edition**, provides an introductory course. This course covers the basic ideas
135+
of computer science and helps you learn Python programming. The second course, **Problem Solving with Algorithms and Data Structures Using Python**, is a thorough introduction to data structures and algorithms using Python. Topics include stacks,
136+
queues, trees, graphs, and recursion.
137+
138+
We hope you will find these tools and materials useful. If you want to get more involved, feel free to download the tools and write your own courseware. Everything you need can be found in the current `GitHub repository <http://github.com/bnmnetp/runestone>`_.
139+
140+
141+
142+
.. toctree::
143+
:hidden:

0 commit comments

Comments
 (0)