The disclosure relates generally to computer-based, interactive learning environments.
Learning how to program a computer to perform tasks from a textbook can be challenging for many students. To learn how to code quickly, a student will often write code, compile the code, and execute the code on a computer to see if they get the expected results. If the results are unexpected, the student will “debug” the code, compile the code, and execute the compiled code on the computer again. This learning process can be frustrating to students due to the delay between writing, compiling, and executing the code and seeing the results. Most students would prefer to see the results in near real-time in an interactive learning environment. The computers that students are learning to program come in variety of form factors, including smartphones, smart watches and tablet computers. The use of touch-based tablet computers in classrooms is becoming ubiquitous due to their portable nature and ease of use. Writing programming constructs using touch gestures presents a new challenge to designers of user interfaces for touch-based computers.
Systems, methods, devices and non-transitory, computer-readable mediums are disclosed for a touch-based, interactive learning environment for software programming.
In general, in an aspect, a method of providing an electronic interactive learning environment includes presenting, on a display device of a computer system, a first graphical user interface (GUI) to a user. The first GUI includes a first game portion visually depicting a first game element and one or more second game elements disposed within a game environment, where at least one of a position of the first game element, a position of each of the one more second game elements, and a number of second game elements is randomized in accordance with a random number generator. The first GUI also includes a control portion visually depicting one or more commands for manipulating the first game element within the game environment, and a first code portion. The method further includes receiving, at the computer system, an indication that the user selected one of the commands depicted in the control portion, and in response to receiving the indication, manipulating the game element within the game environment in accordance with the selected command. The method also includes displaying a first sequence of software code associated with the selected command in the first code portion.
Implementations of this aspect may include or more of the following features.
In some implementations, the first game element can be a player controlled character. At least some of one or more second game elements can be objectives for the player controlled character. At least some of one or more second game elements can be obstacles for the player controlled character. At least some of one or more second game elements can be companion characters for the player controlled character. At least some of one or more second game elements can be switch elements, where the game environment is modified when the first game element and a switch element occupy a same position. Modifying the game environment can include adding one or more additional second game elements, removing one or more of the second game elements, and/or repositioning one or more of the second game elements. The first GUI can be associated with an education lesson plan having a one or more suggested sequences of software code. The first sequence of software code can be selected from among the one or more suggested sequences of software code. The one or more suggested sequences of software code can be specified by a developer of the educational lesson plan.
In some implementations, the selected command can be a command to reorient the first game element within the game environment. The selected command can be a command to change a position of the first game element within the game environment. The selected command cam be a command to rotate the first game element within the game environment.
In some implementations, the first sequence of software code can be a sequence of pseudo-code. The first sequence of software code can be a function call.
In some implementations, the method can further include presenting, on the display device of the computer system, a second GUI to the user. The second GUI can include a second game portion visually depicting the first game element and the one or more second game elements disposed within the game environment, a second code portion displaying one or more sequences of software code, and a suggestion portion visually displaying one or more suggested sequences of software code. At least some of the suggested sequences of software code can be associated with the one or more commands depicted in the control portion of the first GUI.
In some implementations, the method can further include executing the one or more sequences software code displayed in the second code portion. Executing the one more sequences of software code displayed by the second code portion can manipulate the first game element within the game environment.
In some implementations, the method can further include receiving, at the computer device, an input from the user selecting a particular suggested segment of code, and inserting the selected suggested segment of code into the second code portion.
In some implementations, the second GUI can further include a hint portion presenting one or more hints to the user for interacting with the second GUI. Presenting one or more hints to the user for interacting with the second GUI can include identifying one or more suggested sequences of software code to the user.
In some implementations, presenting one or more hints to the user for interacting with the second GUI can include describing an effect of one or more suggested sequences of software code to the user.
In some implementations, the second GUI can further include a boundary element positioned within the second code portion. Portions of the one or more sequences of software code disposed within the boundary element can be edited by the user. Portions of the one or more sequences of software code disposed outside of the boundary element cannot be edited by the user
In some implementations, the method can further include presenting, on the display device of the computer system, a third GUI to the user. The third GUI can include one or more node elements, and one or more connective elements connecting the node elements. Each node element can indicate the user's progress through a respective educational lesson.
In some implementations, the shaded node element can indicate that the user has completed a respective education lesson.
In some implementations, a partially shaded node element can indicate that the user has partially completed a respective education lesson. A proportion of the shaded node element that is shaded can correspond to a proportion of a respective education lesson that has been completed by the user.
In some implementations, the node elements can be hierarchically arranged.
In some implementations, at least one of the node elements can be associated with a lesson plan presented by the first GUI and the second GUI. At least two of the node elements can be associated with a lesson plan presented by the first GUI and the second GUI. The nodes can be arranged according to a sequence defined by the lesson plan.
Other implementations are directed to systems, devices and non-transitory, computer-readable mediums. Particular implementations provide at least the following advantages. Computer programming students are provided a touch-based interactive learning environment where they can follow interactive lesson plans and experiment with writing code using touch gestures almost exclusively. The touch-based interactive learning environment allows students to use their touch-based mobile computers to learn computer programming, thus freeing the student from being physically present in the classroom and using a cumbersome desktop computer with a conventional hardware keyboard and mouse.
Details of one or more implementations are set forth in the accompanying drawings and the description below. Other features, aspects, and potential advantages will be apparent from the description and drawings, and from the claims.
Like reference symbols in the various drawings indicate like elements.
In an example usage of the system 100, education lesson plans (e.g., instructional guides or support materials for one or more educational courses, activities, assignments, schoolwork, or homework) are stored on the lesson plan database 110. The network server 108 retrieves one or more lesson plans from the lesson plan database 110, and distributes the lesson plans to one or more client devices 104a-c via the network 102. Users (e.g., students and/or instructors) interact with the lesson plans by viewing and providing touch input and/or touch-based gestures in response to instructions presented by user interfaces 106a-c. Data regarding each user's progress through the lesson plan and his work product can be transmitted from the client devices 106a-c to the network server 108 for storage, such that each user can later review and/or resume the lesson plan, and such that the user's work can be evaluated by an instructor or an administrator.
In some cases, the client devices 104a-c can include a touch-sensitive input device (e.g., a touch-sensitive display screen or other touch-sensitive surface) that enables users to interact with the system 100 by touching and/or performing touch-based gestures on the client devices 104a-c. In some cases, the user interface 106a-c can be displayed on the touch-sensitive input device (e.g., displayed on the touch-sensitive display screen), such that a user can directly touch and/or perform touch-based gestures with respect to user interface 106a-c in an intuitive manner. In some cases, a user can touch a user interface 106a-c and/or perform touch-based gestures using one or more fingers, styluses, or combinations thereof.
In some cases, an education lesson plan can include educational materials presented using a software development tool, such as an integrated development environment (IDE). Example software development tools are disclosed in U.S. application Ser. No. 15/066,539, filed Mar. 10, 2016, the entirety of which is included herein by reference.
In some cases, education materials can be presented in a touch-based environment (e.g., a touch-based software development tool or IDE). As an example,
The user interface 200 includes a menu bar 210, a code editing area 220, short form results area 225, a live view area 230, and a universal content bar 240.
The menu bar 210 displays one or more commands that are available to the user. A user can select one or more of these commands for execution (e.g., by tapping the portion of the menu bar 210 displaying the desired command). For example, as shown in
The code editing area 220 displays software code and other information associated with the present lesson plan. For example, as shown in
The user can also edit the software code shown in the code editing area 220. For example, a user can input additional sequences of code, remove sequences of code, and/or modify sequences of code. As described in further detail below, in some cases, a user can modify the software code by tapping, touching, or performing touch-based gestures with respect to the user interface. In some cases, a user can also modify the software code by inputting commands into a “virtual” keyboard (e.g., a touch-based keyboard displayed on a touch-sensitive display screen).
In some cases, the software code shown in code editing area 220 can be a simplified or abridged version of an underlying sequence of software code. For example, in some cases, the software code shown in code editing area 220 can include only a portion of an underlying sequence of software code, while other portions of the underlying software code are hidden or otherwise unavailable to the user. This can be useful, for example, as selected sequences of software code can be displayed to a user to illustrate a particular concept, while not overwhelming the user with other sequences of software code that are unrelated or otherwise peripheral to the concept.
The live view area 230 displays in real-time the results of the executing software code shown in the code editing area 220. For example, when a user selects the command 212d, the software code shown in the code editing area 220 is compiled (e.g., translated from a programming language to a machine code), executed in real-time and the results of the executed software code are shown in the live view area 230. In some cases, if the code editing area 220 is showing an abridged or simplified version of an underlying sequence of software code, the underlying sequence of software code, in its entirety, can be compiled and executed, and the results can be shown in the live view area 230.
In some cases, the live view area 230 allows a user to see the results of modifications to the software code in real-time, greatly improving the learning experience. For example, a user can make a modification to the software code shown in the code editing area 220 (e.g., by inserting a new function), and then select the command 212d to see the result of that modification alongside the software code. In this manner, the user can make changes to the code, and then quickly and intuitively visualize the effect of those changes in real-time.
The universal content bar 240 displays suggested portions of software code that can be inserted into the code editing area 220 to complete a sequence of software code. In some cases, the universal content bar 240 can suggest one or more contextually-determined sequences of software code based on a user's inputs (e.g., characters or keystroke that were previously entered by the user) and the already-entered software code (e.g., the software code surrounding an insertion cursor on the code editing area 220). The user can select one or more of these suggested sequences of code by tapping on a particular selection or dragging a particular selection onto the code editing area 220 to insert the suggest sequence of code into the code editing area 220. In some cases, the universal content bar 240 can display one or more suggested sequences of code according to a list of suggestions that were created by an instructor. For example, an instructor can design a lesson plan involving a particular set of functions, and the universal content bar 240 can suggest those particular functions for insertion into the code editing area 220 based on the context.
The short form results area 225 is located between the code editing area 220 and the live view area 230 and is used to display, in “short form” the results of the user's code editing in the code editing area 220. In the example shown, the results of the user selecting a type of rover vehicle and selecting the color of the moon is shown. In some cases, the live view area 230 can show the results of equations, mathematical operations, or other commands shown in the code editing area 220. For example, if the code editing area 220 includes the command “x=1+2”, the live view area 230 can display “x=3” beside the command.
As described above, in some cases, a user can modify the software code displayed in the code editing area 220 by tapping, touching, or performing touch-based gestures with respect to the user interface. In some cases, a user can tap a code construct that he wishes to modify. Code constructs are portions of text, numerals, symbols, and/or other elements that can be combined to form a sequence of software code. Code constructs can include, for example, a function, sub-routine, variable, parameter, value operator, syntax, or other programming construct. In response, the user interface 200 presents the user with options for modifying the selected code construct by, for example, presenting alternative functions, sub-routines, variables, parameters, values operators, or syntax to replace the selected code construct. The user can select one of the options to modify the selected code construct. Thus, a user can modify the software code without using a physical or virtual keyboard or mouse.
For example, as shown in
As another example, as shown in
As another example, as shown in
In some cases, the keypad element 268 can represent two or more characters and/or commands using a single key. For example, a single key can represent a main character or command, and one or more alternative characters or commands. A user can select from among these characters and/or commands by pressing and holding the key, and performing a directional gesture (e.g., a sliding gesture along the touch-sensitive surface). The user then releases his touch to confirm the selection.
For example, as shown in
Referring now to
In some cases, the change in the numerical value can be proportionate to the angular distance that the control element 270 is dragged around the circle. For example, for each degree that the control element 270 is dragged by the user, the numerical value can change by a constant amount (e.g., 1 degree of movement results in 1 unit of change in the numerical value). In some cases, the change in the numerical value can depend on the speed at which the control element 270 is dragged. For example, when the control element 270 is dragged relatively slowly by the user (e.g., 1 degree per unit of time), the numerical value can change at a relatively slow rate (e.g., 1 degree of movement results in 1 unit of change in the numerical value). But, when the control element 270 is dragged relatively quickly by the user (e.g., 10 degrees per unit of time), the numerical value can change at a relatively faster rate (e.g., 1 degree of movement results in 10 units of change in the numerical value). In some cases, the relationship between the speed at which the control element 270 is dragged and the rate of change of the numerical value (e.g., the amount that the numerical value increases or decrease relative to the angular distance that the control element 270 is dragged) can be proportional or exponential, or defined any other relationship. This can be useful, for example, in providing the user with a control element that changes in “sensitivity” depending on the speed at which it is dragged.
In some cases, the user can drag the control element 270 one or more revolutions around the circle 274 to modify the selected numerical value by larger and larger amounts. The user can confirm his selection by releasing his hold on the control element 270.
In some cases, the user can drag the control element 270 around the circle 274 in a clockwise direction to increase the selected numerical value, and drag the control element 270 around the circle 274 in a counter-clockwise direction to decrease the selected numerical value.
In some cases, the selected numerical value can be an angular value (e.g., a particular angle expressed in degrees or radians). In these cases, the angular position of the control element 270 on the circle 274 can correspond with the angular value. For example, if the angular value is 0°, the control element 270 can be displayed at the top of the circle 274. To change the angular value to 90°, the user can drag the control element 270 clockwise to the right of the circle 274. As another example, to change the angular value to −90°, the user can drag the control element 270 counter-clockwise to the left of the circle 274. In this manner, the angular value can be intuitively presented and changed.
In some cases, the rotary element 272 can include more than one circle, and the user can drag the control element 270 around each of the circles to increase or decrease the selected numerical value by different increments. For example, as shown in
In some cases, a rotary element 272 can include multiple concentric circles, and the user can drag the control element 270 around different circles to increase or decrease the selected numerical value by different increments. For example, a user can drag the control element 270 around a first circle to perform a relatively coarse adjustment (e.g., such that a particular angular distance corresponds to a relatively large change in the selected numerical value). The user can drag the control element 270 around a second circle to perform a relatively fine adjustment (e.g., such that the same angular distance corresponds to a relatively small change in the selected numerical value). In this manner, the rotary element 272 can allow the user to vary how coarsely or finely he wishes to adjust the selected numerical value.
In some cases, a rotary element 272 can include a place value selector element (e.g., a button or icon) that allows the user to select which place value he wishes to change. For example, the user can drag a control element around a circle to increase or decrease a units place value of a number. To change the tens place value of a number, the user can toggle a “tens” place value selector element (e.g., by select a “tens” button or icon), and dragging the control element around the circle. In this manner, the same control element and circle can be used to change different place values of a number, depending on which place value has been selected by a user.
As described above, the user interface 200 can include a universal content bar 240 that displays suggested sequences of software code that can be inserted into a code editing area 220 to complete a sequence of software code inserted by the user. The user can select one or more of these suggested sequences of code from the universal content bar 240 by tapping on a particular selection or dragging a particular selection onto the code editing area 220 to insert the suggest sequence of code into the code editing area 220.
As an example, as shown in
As described above, the universal content bar 240 also can suggest one or more contextually-determined sequences of software code based on a user's inputs (e.g., characters or keystroke that were previously entered by the user) and previously-entered software code (e.g., the software code surrounding an insertion cursor on the code editing area 220). For example, as shown in
In some cases, the universal content bar 240 can provide suggestions according in a hierarchical or “stemmed” manner. For example, the universal content bar 240 can initially provide several broad suggestions, and based on a user's selection, offer successively narrower or more specific suggestions until a suitably specific selection is made. For instance, in some cases, multiple functions, variables, parameters, or other programming constructs can each have a name that shares a common sequence of characters (e.g., a common “stem”). The universal content bar 240 can present several different stems, and upon selection of a particular stem, present one or more suggested programming constructs having the selected stem. This can be useful, for example, as it allows a user to navigate through a potentially large number of selections without being overwhelmed.
As an example, as shown in
As shown in
As shown in
As shown in
As shown in
In this manner, a user can modify the sequence of code displayed in the code editing area 220 without utilizing a physical or virtual keyboard. This can be beneficial, for example, as it allows users to more easily perform software programming tasks on a touch-sensitive device, where a physical keyboard or mouse might not be available or convenient. Further, this can be beneficial, as it allows the user to view the user interface 200 more clearly without a virtual keyboard obscuring or limiting the amount of information that can be shown on the user interface.
Although an example operation of the universal content bar 240 is shown, this is merely an illustrative example. In practice, the universal content bar 240 can provide suggestions regarding any function, sub-routine, variable, parameter, value, operator, syntax, or other programming construct, or combinations thereof.
In some cases, a suggested sequence of code can be too lengthy to be displayed fully by the universal content bar 240. In these cases, the suggested sequences of code can be truncated, and the truncated sequences of code can be presented by the universal content bar 240. For example,
In some cases, the suggestions shown in the universal content bar 240 can be highlighted in a manner that indicates whether the suggestion presents a full function call, or whether the suggestion indicates only a portion of a function call. For instance, as shown in
In some cases, the suggestions shown in the universal content bar 240 can be truncated so that they can fit into a predetermined portion of the universal content bar 240. An example process 700 for truncating suggestions is shown in
The process 700 begins by determining whether there is only a single suggestion to be displayed (step 702). If so, the entire suggestion is displayed on the universal content bar (step 708).
If there is more than one suggestion, a determination is made whether the present suggestion is smaller than a particular portion (e.g., one-third) of the available space on the universal content bar (step 704). If so, the entire suggestion is displayed on the universal content bar (step 708).
If the present suggestion is larger than the particular portion of the available space on the universal content bar, a determination is made whether the text of the present suggestion represents a class or functional call that includes at least one parameter or initializer (step 706). If not, the entire suggestion is displayed on the universal content bar (step 708).
If the text of present suggestion represents a class or functional call that includes at least one parameter or initializer, the entire function or class name is displayed on the universal content bar (710), and one character is truncated from each of the parameters (step 712). To indicate that a character has truncated, the parameter is gradually faded towards the point of truncation.
After the parameters have been truncated, a determination is made whether the length of the suggestion is smaller than the particular portion (e.g., one-third) of the available space on the universal content bar, or whether all of the parameters have been truncated to four characters (step 714). If not, additional characters are truncated from each of the parameters until the length of the suggestion is smaller than the particular portion (e.g., one-third) of the available space on the universal content bar, or until all of the parameters have been truncated to minimum of four characters.
If the length of the suggestion is smaller than the particular portion (e.g., one-third) of the available space on the universal content bar, or if all of the parameters have been truncated to four characters, the truncated suggestion is displayed on the universal content bar. If there is more than one suggestion, the process 700 is repeated for each of those suggestions.
Although the above process truncates suggestions to one-third of the available space on the universal content bar, this is merely an illustrative example. In practice, suggestions can be truncated according to other lengths. For example, in some cases, suggestions can be truncated to one half, one fourth, one fifth, one sixth, or any other portion of the available space on the universal content bar. This can beneficial, for example, so that different numbers of suggestions can be displayed on the universal content bar at once.
As described above, the universal content bar can suggest one or more contextually-determined sequences of software code based on a user's inputs (e.g., characters or keystrokes that were previously entered by the user) and previously-entered software code (e.g., the software code surrounding an insertion cursor on the code editing area 220). In some cases, two or more similar suggested sequence of codes can be grouped together, and one or more groups can be displayed by the universal content bar 240. The user can selected one of the groups to access each of the suggested sequences of code within that group. This can be useful, for example, as it allows the user to view suggested sequences of codes in a more organized and intuitive manner.
For example,
However, the user can also continue entering additional code, and the universal content bar 2420 can update to reflect the new entries. For example, as shown in
In some cases, universal content bar 2420 can group two or more similar suggested sequence of codes together, and one or more groups can be displayed by the universal content bar 240. For instance, as shown in
A user can select one of these groups to view items within that group. For example, as shown in
Each suggestion on the universal content bar 2420 can be punctuated to indicate whether the suggestion corresponds to an individual suggested sequence of code, or a group of several different suggested sequences of code. For example, if the suggestion is a group, the suggestion can be displayed with an ellipsis at the end, indicating that multiple suggested sequences of code are contained within the suggested group. When a user selects the group, subsequent suggestions can be displayed with an ellipsis at the beginning, indicating that they can be selected to complete the initial selection. On the other hand, if the suggestion is an individual suggested sequence of code, the suggestion can be displayed without an ellipsis at the end.
In some cases, the universal content bar 2420 can display one or more individual suggested sequences code alongside one or more groups of suggestions. For example, as shown in
In some cases, a user can modify sequences of software code displayed in a code editing area by pressing and holding a particular sequence of software code (e.g., the name of a function or loop). In response, the code editing area can display a code modification element that allows a user to modify or add to the selected sequence of software code (e.g., by modifying or adding to the function or loop). As an example,
Although the modification of an “if” loop is shown in
In some cases, a user can copy a sequence of software code by dragging the sequence of code from one portion of the software code to another. As an example, as shown in
As described above, in some cases, a user can select an icon to invoke a list of suggested sequences of software code, and then select a suggested sequence of software code by touching and holding one of the sequence of software code and dragging the sequence of software code to the code editing area. When the user releases his touch, the selected sequence of software code is inserted into the code editing area. In some cases, a bracketed function can be inserted in this manner. A bracketed function is a function that encloses one or more characters between a beginning bracket and an end bracket. Example bracketed functions include loop functions (e.g., “for” loops, “do” loops, “while” loops), conditional statements (e.g., “if” statements, “if-then” statements, “if-then-else” statements), or any other programming constructs in which characters are enclosed between two brackets. To insert a bracket function, the user can select a bracketed function, drag the selected bracketed function over a particular line of code. When the user releases his touch, the selected bracketed function is inserted around that the line of code (e.g., such that the line of code is enclosed by the bracketed function). The user can enclose additional lines of code within the bracketed function by dragging and repositioning an end bracket associated with the bracketed function.
As an example,
In some cases, a user can insert a bracketed function and adjust the lines of code that are enclosed by the bracketed function using a multi-touch gesture (e.g., a gesture involving presses or gestures by multiple fingers and/or styluses). For example a user can select and drag a bracketed function over a line of code, and then perform a reverse pinching gesture (e.g., by moving two fingers or styluses away from each other) to enclose the lines of code between the two fingers or styluses within the bracketed function. The user can increase the space between his two fingers or styluses into order to enclose a greater number of lines within the bracketed function, or reduce the space between his two fingers or styluses into order to enclose a lesser number of lines within the bracketed function. When the user releases his touch, the bracketed function is inserted such that it encloses the selected lines of code.
In some cases, a user interface can include a virtual keyboard (e.g., a touch-based keyboard displayed on a touch-sensitive display screen) that allows a user to select images of keys to input characters. In some cases, each key on the virtual keyboard can represent multiple different characters. A user can select from among these characters by pressing and holding the key, and performing a diagonal swiping gesture (e.g., a sliding gesture in a diagonal direction along the touch-sensitive surface). The user then releases his touch to confirm the selection.
For example, as shown in
Although the operation of a single “Y” key is shown above, this is merely an illustrative example. In practice, any number of keys of a virtual keyboard (e.g., one, two, three, four, or more keys) each can be used to represent multiple different characters. A user can select a desired character by tapping an appropriate key, or by pressing and holding a key and performing an appropriate diagonal gesture.
Further, although diagonally downward gestures are described above, diagonally upward gestures are also possible, either instead of or in addition to diagonally downward gestures. For example, in some cases, a user can select another character by holding a key, and while maintaining his touch, performing a diagonal gesture across the face of the key in the upper-right direction. As another example, in some cases, a user can select yet another character by holding a key, and while maintaining his touch, performing a diagonal gesture across the face of the key in the upper-left direction. Allowing swiping in both upward and downward directions allows a user to select from 5 different characters while maintaining touch on a single key face.
In the example above, the selected character is indicated by displaying the character above the key. However, the selected character can also be indicated in other ways. For example, in some cases, the selected character can be indicated by displaying the character below the key, or to the side of the key. As another example, as shown in
In the example shown in
In some cases, a user can perform a sliding gesture away from a particular alternate character to select that alternate character. This can simulate the user “dragging” one of the alternate characters towards the center of the face of the key to select that alternate character. For example,
The user can select the “Y” character by tapping on the “Y” key. Alternatively, the user can select the right parenthesis character by pressing and holding the holding the “Y” key (illustrated as the dotted circle 1120), and while maintaining his touch, performing a diagonal gesture across the face of the key in the bottom-left direction (illustrated as the dotted arrow 1122). As the user is performing the gesture, the right parenthesis character is moved closer and closer to the center of the key face (e.g., to simulate the user “dragging” the right parenthesis character towards the center of the key face). As shown in
In the example shown in
In some cases, in addition to having keys representing characters, a virtual keyboard can also include keys representing non-character inputs. For example,
Although diagonal gestures are described above, other gestures are also possible, depending on the implementation. For example, in some cases, each key on the virtual keyboard can represent multiple different characters, and a user can select from among these characters by pressing and holding a key, and performing a vertical gesture (e.g., a downward sliding gesture along the touch-sensitive surface). The user then releases his touch to confirm the selection.
For example, as shown in
Although a key having three example levels is described above, this is merely an illustrative example. In practice, a key can have any number of different levels (e.g., one two, three, four, five, six, or more), depending on the implementation. Further, although the above examples describes that a selected character is displayed on a key such that it is larger than the other characters on the key, in some cases, a selected character can be indicated in other ways. For example, in some cases, a selected character can be the only character on the key, or differently highlighted, colored, weighted (e.g., indicated in bold), and/or animated than other characters on the key. Further, although the example depicts a user selecting an alternate character by performing a gesture away from a particular alternate character, in some cases, the user can select an alternate character by performing a gesture towards a particular alternate character.
In some cases, a user can navigate through a sequence of software code by pressing and holding a portion of the software code, and while maintaining his touch, dragging his finger or stylus along the software code. As the user drags his finger or stylus along the software code, the user interface can select and highlight the programming constructs that are beneath the user's finger or stylus. The user interface can also display a contextual copy of the selected software code (e.g., the selected software code and the surrounding software code) above the user's finger or stylus, such that the user can more readily see what code has been selected in an unobscured manner.
For example,
In some cases, a sequence of code can include one or more arrays (e.g., a series of objects sharing a similar size and type). A user can add objects to the array using a touch-based interface. For example, as shown in
In some cases, the user can insert additional objects into an array by positioning a cursor or highlight box over an existing object of an array. The user can then select an option to add an additional object to an array, and while maintaining his touch, drag his finger or stylus in a left or right direction. When the user releases his touch, the user interface can update to include an additional object in the array.
For example, as shown in
Similarly, the user can then insert an additional integer after the selected integer by pressing and holding the “add value” option. The user maintains his touch, and performs a leftward gesture. When the user releases his touch, the user interface 1600 updates to include an additional object after the selected object. Thus, a user can insert additional objects using an intuitive directional gesture.
In some cases, a user can change the size of an array by dragging an end bracket associated with the array. For example, a user can drag the end bracket away from the array's beginning bracket to increase the size of the array, or drag the end bracket towards the array's beginning bracket to decrease the size of the array.
For example, as shown in
Although integer arrays are shown and described, these are merely illustrative examples. In practice, any type of array (e.g., a character array, a floating-point array, a Boolean array, or any other type of array) also can be filled and modified in a similar manner.
In some cases, a user can add blank lines (e.g., line breaks) in a sequence to code by performing a reverse-pinching gesture (e.g., by moving two fingers or styluses away from each other) over a sequence of code. As the user's fingers or styluses are moved further and further apart, additional lines breaks are added between the fingers or styluses. In a similar manner, a user can remove blank links (e.g., deleting line breaks) in a sequence to code by performing a pinching gesture (e.g., by moving two fingers or styluses towards from each other) over a sequence of code. As the user's fingers or styluses are moved closer and closer together, lines breaks are removed from between the fingers or styluses.
The user interface 2500 includes a game portion 2510, a control portion 2520, and a code portion 2530.
In general, a game portion 2510 depicts various interactive game elements within a game environment. In this example, the game portion 2510 depicts a player game element 2512a (e.g., a figure of a princess), and a non-player game element 2512b (e.g., a gem), each positioned within a game environment 2514 (e.g., a maze). The game environment 2514 includes several spaces 2516 arranged in a grid, and an obstacle 2518. In this example, the objective of the game is to navigate the player game element 2512a through the spaces 2516 of the game environment 2514 until it reaches the non-player element 2512b.
The player game element 2512a is controlled by the user (e.g., a “player character”). For example, the user can interact with the control portion 2520 to manipulate the player game element 2512a within the game environment 2514 (e.g., to navigate or guide the player game element 2512a through the game environment 2514). Example ways that the user can manipulate the player game element 2512a are described in further detail below. Although a player game element 2512a is depicted as a figure of a princess in
As noted above, the objective of the game is to navigate the player game element 2512a through the spaces 2516 of the game environment 2514 until it reaches the non-player element 2512b (e.g., the “objective” element). As an example, the user can manipulate the player game element so that the position of the player game element 2512a coincides with the non-player game element 2512b (e.g., so that they occupy the same space in the game environment 2514). In some cases, after the player game element 2512a reaches the non-player element 2512b, the non-player element 2512b can be removed from the game environment 2514 (e.g., to simulate the player game element 2512a collecting or picking up the non-player element 2512b). Although one non-player game element 2512b is shown, this is merely an illustrative example. In some cases, there may be any number of non-player game elements (e.g., one, two, three, four, or any other number), and the user can manipulate the player game element 2512a to “collect” some or all of the non-player game elements. For example, there may be multiple non-player game elements, and the user may be required to collect all of the non-player game elements to succeed in the game. As another example, there may be multiple non-player game elements, and the user may be required to collect at least a minimum number of the non-player game elements to succeed in the game (e.g., collect at least 4 out of 8 of the non-player game elements). As another example, there may be multiple non-player game elements, and the user may be required to collect a specific number of the non-player game elements to succeed in the game (e.g., collect exactly 6 out of 8 of the non-player game elements).
The obstacle 2518 impedes the progress of the player game element 2512. For example, the obstacle 2518 can occupy a space in the game environment 2514, and prevent the player game element 2512 from occupying that space. Thus, the user must guide the player game element 2512 around the obstacle 2518 to reach each of the objectives. Although an obstacle 2518 is depicted as a pillar in
In some cases, the game environment 2514 can include additional game elements that either impede or assist the user in reaching each of the objectives.
For example, in some cases, the game environment 2514 can include one or more switch elements that modify the game environment 2514. For instance, the user can navigate the player game element 2512 to a switch element (e.g., so that the player game element 2512 and the switch element occupy the same space in the game environment 2514). In response, the game environment 2514 can be modified to remove one or more obstacles (e.g., to simulate the opening of a door, the retraction of a retractable wall, the destruction of an obstacle, and so forth), move one or more obstacles (e.g., to simulate the movement of a moveable wall, the shifting of an object, and so forth), and/or add one or more obstacles (e.g., to simulate the appearance of an object). In some cases, the switch element can simulate a pressure pad switch (e.g., by modifying the game environment in response to the user's character “stepping” on the switch).
As another example, in some cases, the game environment can include one or more lock elements that impede the movement of the player game element 2514 until it is “unlocked” using a corresponding key element. For instance, if the user navigates the player game element 2512 to the lock element, the lock element might act as an obstacle, and impede the progress of the player game element 2512. However, if the user has previously collected a corresponding key element using the player game element 2514 (e.g., by previously manipulating the player game element 2512 so that the player game element 2512 and the key element occupied the same space in the game environment 2514), the lock element can be removed and allow free passage (e.g., to simulate the use of a key to unlock a locked door).
As another example, in some cases, the game environment can include one or more companion character elements that assist the user in reaching the objectives. For instance, if the user navigates the player game element 2512 to the companion character element, the companion character element can subsequently follow the player game element 2512 as it moves throughout the game environment 2514 (e.g., to simulate a companion following the user's character). The companion character element can assist the user's character in various ways. For example, the companion character can remove one or more obstacles on behalf of the player (e.g., to simulate a powerful character destroying one or more obstacles). As another example, the companion character can move one or more obstacles on behalf of the player (e.g., to simulate a strong character moving one or more obstacles). As another example, the companion character can open one or more lock elements (e.g., to simulate a locksmith defeating a locked door). As another example, the companion character can actuate one or more switch elements (e.g., to simulate a skilled character operating a control panel). As another example, the companion character can move the player game element 2512 (e.g., to simulate a wizard teleporting the user's character to a new location). As another example, the companion character can reveal a path for the play game element 2512 (e.g., to simulate a builder constructing a bridge for the user's character). In some cases, the companion character can automatically perform certain tasks without direct instructions from the user (e.g., automatically “construct” a bridge when the user's character is next to a particular obstacle). In some cases, the companion character can perform certain tasks based on instructions provided by the user (e.g., “construct” a bridge when the user specifically commands the companion character to do so). Although example companion characters (and their corresponding effects) are described, these are merely illustrative examples. Other companion characters and effects are possible, depending on the implementation.
In some cases, the game environment can include one or more stair elements. If the user navigates the player game element 2512 to the stair element, the game environment 2514 can be modified, such that the game environment 2514 takes on a new appearance and layout (e.g., by adding, removing, and/or repositioning each of the elements of the game environment 2514). This can be used to simulate the user's character walking up or down a flight of stairs, and accessing a new floor or level of a building. If the user subsequently navigates to the stair element again, the game environment 2514 can be reverted to the original arrangement. This can be used to simulate the user's character returning to the original floor or level of the building.
Although an example game portion 2510 is shown, this is merely an illustrative example. In practice, a game portion 2510 can include different arrangements of game elements and game environments. Further, the game elements and game environments can also different (e.g., different in number, size, shape, appearance, and so forth), depending on the implementation.
The control portion 2520 depicts one or more commands for manipulating the player game element 2512a within the game environment 2514. In this example, the control portion 2520 depicts a “forward” command 2522a to move the player game element 2512a forward, a “backwards” command 2522b to move the player game element 2512a backward, a “clockwise” command 2522c to rotate the play game element 2512a clockwise, and a “counter-clockwise” command 2522d to move the play game element 2512a counter-clockwise.
A user can select one of the commands depicted in the control portion 2520 (e.g., by tapping on or otherwise selecting a particular command), and in response, the game portion 2510 updates in accordance with the selected command. For example, if the user selects the “forward” command 2522a, the game portion 2510 updates to depict the player game element 2512a moving forward within the game environment 2514 (e.g., forward one step). As another example, if the user selects the “clockwise” command 2522c, the game portion 2510 updates to depict the player game element 2512a rotating clockwise within the game environment 2514 (e.g., rotating 90 degrees clockwise while remaining in the same space). If the user selects a command that cannot be performed (e.g., if the user selects a command that would cause the player game element 2512a to collide with the obstacle 2518 or exit the boundaries of the game environment 2514), the game portion 2510 can prevent the command from being executed, and indicate the error to the user (e.g., by presenting an error message, sound effect, or animation).
Each command shown in the control portion 2520 is also associated with a respective sequence of software code. These sequences of software code can be, for example, sequences of code that can be directly executed in a programming environment, or simplified representations of sequences of software code (e.g., “pseudo-code”). In some cases, the sequences of software code can include executable or simplified function calls representing functions that are available in a programming environment. For example, the “forward” command 2522a can be associated with a pseudo-code function call “moveForward( ),” the “backwards” command 2522b can be associated with a pseudo-code function call “moveBackwards( ),” the “clockwise” command 2522c can be associated with a pseudo-code function call “turnRight( ),” and the “counter-clockwise” command 2522d can be associated with a pseudo-code function call “turnLeft( ),” The association between each command and its respective sequence of code can be defined, for example, by a developer of the lesson plan (e.g., an instructor or a lesson plan author). Further, each pseudo-code function call can correspond to a respective executable sequence of code defined by the developer of the lesson plan. In turn, each executable sequence of code, when executed, can have a corresponding effect on the game environment 2514. For example, the pseudo-code function call “moveForward( )” can correspond to a executable sequence of code that, when executed, cases the player game element 2512a to move forward. As another example, the pseudo-code function call “moveBackwards( )” can correspond to a executable sequence of code that, when executed, cases the player game element 2512a to move backwards. In some cases, the pseudo-code function calls can depict a simplified or abstracted version of an underlying sequence of executable code, such that the user is not confused or intimidated by the underlying code.
When the user select one of the commands depicted in the control portion 2520, the code portion 2530 updates to display the sequence of software code associated with the selected command. For example, if the user selects the “forward” command 2522a, the game portion 2510 updates to depict the player game element 2512a moving forward within the game environment 2514, and the control portion 2530 updates to display the pseudo-code function call “moveForward( ).” If the user subsequently selects the “counter-clockwise” command 2522d, the game portion 2510 updates to depict the player game element 2512a turning counter-clockwise within the game environment 2514, and the control portion 2530 updates to additionally display the pseudo-code function call “turnLeft( ).” Thus, the user can use the control portion 2520 to manipulate the player game element 2512a in an intuitive manner (e.g., in a manner similar to using a game controller in a video game), and associate a particular sequence of software code with each of his actions. In this manner, the user can more easily understand the effect of each sequence of software code. Similarly, the control portion 2520 can provide commands for controlling a companion character (e.g., commands corresponding to specific abilities of the companion character), and the code portion 2530 can update to display the sequence of software code associated with a selected command.
Once the player has completed the objectives of the game (e.g., by successfully moving the player game element 2512a to the non-player game element 2514b), the user is given the opportunity to apply these concepts in a programming environment. For example, as shown in
The user interface 2550 includes a game portion 2560, a code portion 2570, and a suggestion portion 2580.
The game portion 2560 is similar to that shown with respect to
However, instead of a control portion, the user interface 2550 includes a code portion 2570. A user can input sequences of software code into the code portion 2570 to manipulate the player game element 2562a. When this code is executed, the game portion 2560 is updated in accordance with the executed code. The code can be executed automatically (e.g., as the user enters sequences of code), and/or manually (e.g., in response to a user manually specifying that the code be executed, such as by selecting a “start” command 2572). This can be similar, for example, to the functionality described with respect to
As an example, the user can input the pseudo-code function call “moveForward( )” into the code portion 2570. When this code is executed, the game portion 2560 updates to depict the player game element 2562a moving forward within the game environment 2564 (in a similar manner as described with respect to
The user can continue entering sequences of code into the code portion 2570, then executing that code to observe the code's effects on the game portion 2560. In some cases, if the executed sequences of code do not result in the user completing the objective, the user interface 2550 can indicate that the entered sequences of code was incorrect, and reset the game portion 2560 to its original position. The user can subsequently modify the sequences of code in the code portion 2570 to refine his work, then execute the code again to observe the effects of the modified code on the game portion 2560. In this manner, the user can iteratively revise his work until the objective is completed.
The suggestion portion 2580 displays suggested portions of software code that can be inserted into the code portion 2570. The suggestion portion 2580 can be similar to the universal content bar described above. For example, in some cases, the suggestion portion 2580 can suggest one or more contextually-determined sequences of software code based on a user's inputs (e.g., characters or keystroke that were previously entered by the user) and the already-entered software code. The user can select one or more of these suggested sequences of code by tapping on a particular selection or dragging a particular selection onto the code portion 2570 to insert the suggest sequence of code into the code portion 2570.
In some cases, the user interface 2550 can present hints to the user for interacting with the user interface 2550. For example, the user interface 2550 can present a hint that identifies one or more suggested sequences of software code to the user (e.g., a suggestion to try a particular sequence of code), or a hint that describes an effect of one or more suggested sequences of software code to the user. This can be useful, for example, if the user is confused about a particular aspect of the lesson plan, and requires assistance in completing the objective. In some cases, one or more hints can be sequentially provided, where each hint is progressively more specific and/or detailed than the last. This can be useful, for example, as it can first provide a user with a small amount of guidance such that the user can still substantially complete the objective on his own. However, if the user continues to have difficulty with the objective, more and more help can be provided until the user is able to successfully complete the objective. These hints can be defined, for example, by the developer of the educational plan (e.g., an instructor or a lesson plan author).
Although the interfaces 2500 and 2550 are shown with simplified input options, any of the code input implementations described herein can be used as well. For example, the interfaces 2500 and 2550 can include some or all of the functionality described herein, including a keypad or rotary element for inputting information, a universal content bar for viewing and selecting suggested sequences of software code, and/or a virtual keyboard for entering primary and alternate characters. As another example, the interfaces 2500 and 2550 can allow a user to modify sequences of software code using the touch-based inputs described herein.
In some cases, a code portion can present several sequences of software code to the user, but only allow the user to revise particular portions of the code. This can be useful, for example, to focus the user on a specific portion of the code that is relevant to the lesson, and to prevent the user from modifying other portions of the code in an unintended manner. These limits can be defined, for example, by the developer of the educational plan (e.g., an instructor or a lesson plan author).
As an example,
In this example, however, the code portion 2620 includes a boundary element 2622 positioned within the sequences of software code. The boundary element 2622 indicates a portion of the software code than can be revised by the user. In this example, the boundary element 2622 surrounds the body of a function “turnRight( ),” indicating that the user can revise the code within this function. The user can select this portion (e.g., by tapping on the boundary element 2622), and in a similar manner as described above, input sequences of software code (e.g., by inputting characters, performing touch-based gestures, selecting input suggestions, so forth), delete the code, or otherwise revise the code contained within the boundary element 2622. However, the user cannot revise the code outside the boundary element 2622. As a result, the user is focused on modifying the body of the function to complete the objective, and cannot modify other portions of the code in an unintended manner. These boundary element 2622 can be positioned, for example, by the developer of the education plan.
In
Although a single boundary element is shown, this is merely an illustrative example. In practice, a code portion can include any number of boundary elements (e.g., zero, one, two, three, four, or more) as defined by the developer of the education plan. Further, in implementations where a code portion contains multiple boundary elements, the boundary elements can be depicted similarly (e.g., using a similar color or pattern), or depicted differently (e.g., using different colors or patterns). Different colors of patterns can be useful, for example, in distinguishing different portions of editable code to a user.
In some implementations, a user's progress through an education lesson plan can be graphically presented, such that the user can quickly and intuitively track his progress. For example,
The user interface 2700 includes a section portion 2710 that identifies sections of a lesson plan (e.g., sections of a lesson plan that pertain to particular concepts, analogous to a “chapter” in a textbook). As shown in
The user interface 2700 includes a progress indicator portion 2720 that identifies individual lessons within a section, and the user's progress in each of these lessons. In the example shown in
In some cases, when a user has begun a lesson, the node element can be depicted as a partially filled circle, where the fraction of the circle that is filled corresponds to portion of the lesson completed by the user. For example, when the user has completed 10% of the lesson, the node element can be 10% filled (e.g., 10%, represented in the form of a pie chart). When the user completes more of the lesson, such as 70%, the node element is updated such that 70% is filled (e.g., 70%, represented in the form of a pie chart).
Further, each node is connected using connective elements (e.g., lines). These connective elements illustrate the relationship between the elements, and indicate the order in which a user can participate in the lessons. In some cases, when a user has completed a lesson associated with a node, he can be eligible to begin any of the lessons associated with interconnected nodes. For example, when the user has completed a lesson associated with the node 2722b, he can be eligible to begin the lessons associated with the nodes 2722c, 2722d, and 2722e. In some cases, when a user has merely begun a lesson associated with a node, he can be eligible to begin any of the lessons associated with interconnected nodes. For example, when the user has begun the lesson associated with the node 2722b, he can be eligible to begin the lessons associated with the nodes 2722c, 2722d, and 2722e.
Although a single section portion and progress portion and described, this is merely an illustrative example. In practice, any number of section portions and progress portions can be used, depending in the implementation.
As described herein (e.g., with respect to
An example system 2800 for randomizing a lesson is shown in
The random number generator 2810 is configured to produce one or more random or substantially random numbers. As an example, a random number generator 2810 can include a module or device that measures a physical phenomenon that is expected to be random, then compensates for possible biases in the measurement process. For instance, a random number generator can measure atmospheric noise, thermal noise, and other external electromagnetic and quantum phenomena, then output a random number in accordance with the measurement. As another example, a random number generator 2810 can include a device that uses computation algorithms to produce long sequences of apparently random results (e.g., “pseudorandom” numbers) based on an initial value (e.g., a seed value or key).
The random number generator 2810 outputs one or more random numbers to the game environment module 2820. Based on the random numbers, the game environment module 2820 generates a game environment for use in a lesson. As an example, based on the random numbers, the game environmental module 2820 can determine a size of the game environment itself (e.g., the x-dimension of a grid and a y-dimension of the grid). As another example, based on the random numbers, the game environmental module 2820 can determine how many of each type of game element to include in the game environment, and the position of each game element within that game environment (e.g., a particular indexed space on a grid). As another example, based on the random numbers, the game environmental module 2820 can determine when certain game element are added or removed from the game environment (e.g., after a particular number of seconds have elapsed since the beginning of the game, or during a particular “turn” or “step” in the game).
As an example, a first random number can be used to determine the x-dimension of a grid (e.g., 8), and a second random number can be used to determine the y-dimension of the grid (e.g., 9). Based on these random numbers, the game environment module can generate a game environment having an 8×9 grid. As another example, a third random number can be used to determine the quantity of “objective” elements in the game environment (e.g., 2), and a series of fourth random numbers can be used to determine the location of each “objective” element in the game environment (10 and 20). Based on these random numbers, the game environment module can generate two “objective” elements, and place those objective elements in the 10th and 20th indexed spaces of the grid. Similarly, additional random elements can be used to determine the quantity and/or locations of each of the other game elements.
In some cases, the random numbers generated by the random number generator 2810 can be constrained based on constraint information provided by the game environment module 2820. This can be useful, for example, as it allows the game environment module 2820 to produce randomized game environments, while also limiting the game environment to particular sizes, compositions, and/or arrangements. For example, the game environment module 2820 can instruct the random number generator 2810 to generate random numbers between 8 and 15 for the x and y-dimensions of a grid. Thus, the grid will have a random size between 8 and 15 each in each of its dimensions. As another example, the game environment module 2820 can instruct the random number generator 2810 to generate a random number between 1 and 5 for the quantity of “objective” elements in the game environment. Thus, the grid will contain between 1 and 5 “objective” elements for the user to collect. As another example, the game environment module 2820 can instruct the random number generator 2810 to generate a random number for each of the “objective” elements, where each random numbers is between 1 and the total number of spaces in the grid. Thus, given these constraints, the random number generator 2810 might randomly generate numbers 10 and 15 (resulting in a 10×15 grid), randomly generate a number 2 (resulting in two “objective” elements), and randomly generate numbers 39 and 62 (resulting in the “objective” elements being placed in the 39th and 62nd spaces of the grid).
Although example constraints are described above, these are merely illustrative examples. In practice, the game environment module 2820 can provide any number of different constraints to the random number generator, with respect to any characteristic to be randomized with respect to the game environment. In some cases, these constraints can be defined by the author of the lesson plan, an instructor, and/or a user to customize a lesson as desired.
In some cases, some or all of the characteristics of a game environment can be randomized, and the remaining characteristics (if any) can be pre-defined by the author of the lesson plan, an instructor, and/or a user to customize a lesson as desired. In some cases, none of characteristics are randomized, and the game environment can be entirely pre-defined (e.g., the game environment can be entirely “constructed” by the author of the lesson plan, an instructor, or the user).
In some cases, the game environment module 2820 can maintain a history of the generated game environments, and re-generate a game environment if it is identical or sufficiently similar to already generated game environments. This can be useful, for example, as it provides the user with new challenges that he has not seen before.
In some cases, the game environment module 2820 can generate game environments based on input provided by the user. For example, a particular game environment may require one or more companion characters to complete the objectives of the lesson. Accordingly, the user can instruct the game environment module 2820 to insert one or more companion characters into the game environment, such that he can access them during the game. As another example, a particular game environment may require one or more switch elements to complete the objectives of the lesson. Accordingly, the user can instruct the game environment module 2820 to insert one or more switch elements into particular positions within the game environment, such that he can utilize them during the game. This can be beneficial, for example, as it tests the user's understanding of particular types of game elements, and tests the user's ability to apply that understanding in solving a problem.
After the game environment module 2820 generates the game environment, the game environment module 2820 transmits information regarding the generated game environment to the interface module 2830. Based on this information, the interface module 2830 presents the game environment to the user, and monitors the user's interactions with respect to the game environment (e.g., monitoring for commands or other inputs from the user). Based on a user's interactions, the interface module 2830 modifies the game environment to reflect the user's inputs and commands with respect to the lesson. As an example, the interface module 2830 can present the user interfaces 2500, 2550, and/or 2600 shown in
The process 1800 begins by presenting, by an electronic device, a user interface on a touch sensitive surface of the electronic device (step 1802). The text editing interface can be similar to the user interface 200 described above. For example, in some implementations, a text editing interface can include a menu bar, a code editing area, a short form results area, a live view area, and a universal content bar that allow a user to directly touch and/or perform touch-based gestures with respect to the user interface in an intuitive manner. In some cases, a user can touch a user interface 106a-c and/or perform touch-based gestures using one or more fingers, styluses, or combinations thereof.
The electronic device receives a first touch input selecting a numeral presented in the user interface (step 1804). As described above, in some cases, this can be performed by a user pressing and holding a portion of the touch sensitive surface corresponding to the numeral.
Responsive to receiving the first touch input, the electronic device presents a numeric keypad interface and a display element (step 1806). As described above, in some cases, the electronic device can present a numeral selection element including a keypad and control element, as described with respect to
The electronic device receives a second touch input selecting the display element (step 1808). As described above, in some cases, the user can select the display element by touching and holding a portion of the touch sensitive surface corresponding to the control element of the numeral selection element, as described with respect to
Responsive to receiving the second touch input, the electronic device presents a rotary interface including the display element (step 1810). As described above, in some cases, the electronic device can display a rotary element that includes the control element positioned on a circle, as described with respect to
While the user is maintaining physical contact with the touch sensitive surface, the electronic device receives a rotational touch gesture dragging the display element about the rotary interface (step 1812). As described, in some cases, the user can perform the rotational touch gesture by dragging the control element around the circle of the rotary element, as described with respect to
Responsive to receiving the rotational touch gesture, the electronic device modifies the numeral (step 1814). As described above, this can be performed by determining the angular distance that a control element has been dragged around a circle of the rotary element with respect to an origin, and modifying the numeral based on the angular distance. In some cases, when the control element is dragged in a first direction around the circle (e.g., clockwise), the electronic device can increase the numeral. In some cases, when the control element is dragged a second distance around the circle (e.g., counter-clockwise), the electronic device can decrease the numeral. In some cases, the rotary interface can include multiple concentric circles, and the control element can be dragged about each of the circles to modify different place values of the numeral. In some cases, the numeral can represent an angular value, and the position of the control element on the circle can correspond to the angular value.
The process 1900 begins by presenting, by an electronic device, a user interface on a touch sensitive surface of the electronic device (step 1902). The user interface can have a first portion for displaying a sequence of code, and a second portion for displaying suggested segments of code. For example, in some implementations, a user interface can include a code editing area and a live view area that allow a user to directly touch and/or perform touch-based gestures to edit software code in the code editing area in an intuitive manner and see the results of the executing code in real-time in the live view area. In some cases, a user can touch a user interface 106a-c and/or perform touch-based gestures to edit code using one or more fingers, styluses, or combinations thereof.
The electronic device receives one or more character inputs in the first portion of the user interface (step 1904). As described above, in some cases, this can be performed by a user entering character inputs using a physical or virtual keyboard. As also described above, in some cases, this can also be performed by a user inputting, inserting, and/or relocating characters or sequences of characters (e.g., names of functions, variables, parameters, or other programming constructs) through one or more touch-based gestures.
The electronic device determines, based on the one or more character inputs, one or more suggested segments of code (step 1906). As described above, in some cases, the electronic device can determine suggested segments of code based, at least in part, on a user's inputs (e.g., characters or keystroke that were previously entered by the user) and the already-entered software code (e.g., the software code surrounding an insertion cursor in the code editing area). In some cases, the electronic device can determine suggested sequences of code according to a list of suggestions that were created by an instructor. For example, an instructor can design a lesson plan involving a particular set of functions, and the electronic device can suggest those particular functions to the user.
The electronic device presents the one or more suggested segments of code in the second portion of the user interface (step 1908). As described above, in the some cases, the electronic device can present suggested segments of code in a universal content bar, such that the user can view each of the suggested segments of code in an organized manner. In some cases, the suggested segments of code can be truncated (e.g., by removing one or more characters from the second of code), and the truncated code can be presented to the user. This can be useful, for example, as it allows the user to view suggested segments of code that might otherwise be too lengthy to fit on the user interface in their entirety.
The electronic device receives, from the user, a touch input selecting a particular suggested segment of code (step 1910). As described above, in some cases, a user can tap a portion of the touch sensitive surface corresponding to a suggested segment of code, as described with respect to
The electronic device inserts the selected suggested segment of code into the first portion of the user interface area. As described above, in some cases, the selected suggested segment of code can be inserted into a sequence of code displayed in the code editing area. In some cases, the electronic device can suggest additional segments of code based on the selected suggested segment of code, such the user can continue to view, and if desired, insert additional segments of code into the code editing area.
The process 2000 begins by presenting, by an electronic device, a user interface on a touch sensitive surface of the electronic device (step 2002). The user interface can have a first portion for displaying a sequence of code, and a second portion for displaying suggested bracketed functions. For example, in some implementations, a user interface can include a code editing area and a live view area that allow a user to directly touch and/or perform touch-based gestures in the code editing area in an intuitive manner and to review the results in real-time in the live view area. In some cases, a user can touch a user interface 106a-c and/or perform touch-based gestures using one or more fingers, styluses, or combinations thereof.
The electronic device receives a first touch gesture dragging a suggested bracketed function from the second portion to the first portion of the user interface (step 1904). As described above, in some cases, a user can touch and hold a portion of the touch sensitive surface corresponding to a suggested bracketed function, and drag the bracketed function onto a code editing area (e.g., as described with respect to
Responsive to receiving the first touch gesture, the electronic device inserts the suggested bracketed function into the sequence of code, where the bracketed function encloses at least a portion of the sequence of code (step 1906). As described above, in some cases, when a user releases his touch above a particular line of code, the electronic device can insert the bracketed function such that that particular line of code is enclosed by the bracketed function (e.g., as described with respect to
The electronic device receives a second touch gesture dragging an end bracket associated with the inserted bracketed function (step 1908), and in response, modifies the sequence of code such that the bracketed function encloses an additional portion of the sequence of code (step 1910). As described above, in some cases, the user can press and hold a portion of the touch sensitive surface corresponding to the end bracket, and drag the end bracket such that additional lines of code are enclosed between the end bracket and a beginning bracket, as described with respect to
The process 2100 begins by presenting, by an electronic device, a keyboard image on a touch sensitive surface of the electronic device (step 2102). As described above, the keyboard image can be presented as a part of a “virtual keyboard” that allows a user to enter characters and non-character commands using touch-inputs on the touch sensitive surface. In some cases, a user can touch a user interface 106a-c and/or perform touch-based gestures using one or more fingers, styluses, or combinations thereof.
The electronic device receives a first touch selecting a key of the keyboard image (step 2104). As described above, in some cases, a user can touch and hold a portion of the touch sensitive surface corresponding to the key (e.g., as described with respect to
Responsive to receiving the first touch gesture, the electronic device displays a primary character associated with the selected key (step 2106). As described above, in some cases, the electronic device can display the primary character above the selected key.
While the user is maintaining physical contact with the touch sensitive surface, the electronic device receives a touch gesture starting at the key of the keyboard image and continuing in a diagonal direction along a face of the key (step 2108).
Responsive to receiving the touch gesture, the electronic device displays an alternative character associated with the selected key (step 2110). As described above, in some cases, the user can perform a downward-left swipe gesture along a face of the key, and in response, the electronic device can display a first alternative character. In some cases, the user can perform a downward-right swipe gesture along a face of the key, and in response, the electronic device can display a second alternative character. In some cases, the user can perform an upward-left swipe gesture or an upward-right swipe gesture along the face of the key, and in response, the electronic device can display other alternative characters. As described above, in some cases, the electronic device can display the alternative character above the selected key. In some cases, the electronic device can replace a text label of the selected key with the alternative character, or highlight the alternative character on the selected key.
The process 2900 begins by presenting, on a display device of a computer system, a first graphical user interface (GUI) to a user (step 2902). As described above, the first GUI can be associated with an education lesson plan. The first GUI can include a first game portion visually depicting a first game element and one or more second game elements disposed within a game environment, a control portion visually depicting one or more commands for manipulating the game element within the game environment, and a first code portion. At least one of a position of the first game element, a position of each of the one more second game elements, and a number of second game elements can be randomized in accordance with a random number generator. The first game element can be, for example, a player controlled character (e.g., a player game element). The second game elements can be, for example, objectives for the player controlled character (e.g., “objective” elements), obstacles for the player controlled character, companion characters for the player controlled character, switch elements, lock elements, and/or key elements. As an example, the first GUI can be similar to the user interface described with respect to
The computer system receives an indication that the user selected one of the commands depicted in the control portion (step 2904). As described above, in some cases, computer system can input a touch sensitive surface and allows the user to make a selection by performing touch-based gestures using one or more fingers, styluses, or combinations thereof. As described above, in some case, the command can be a command to manipulate the game element within the game environment. For example, the command can be a command to reorient the game element, change a position of the game element, rotate the game element, and/or otherwise manipulate the game element within the game environment.
In response to receiving the indication, the computer system manipulates the game element within the game environment in accordance with the selected command (step 2804). For example, the computer system can update the first game portion to depict the game element being manipulated in the manner specified by the user.
The computer system also displays a first sequence of software code associated with the selected command in the first code portion (step 2906). As described above, first GUI can be associated with an education lesson plan having a one or more suggested sequences of software code; the first sequence of software code can be selected from among these suggested sequences of software code. These suggested sequences of code can be specified by a developer of the education lesson plan. For example, a developer of an education lesson plan may specify that each of the commands depicted in the control portion are associated with a respective sequence of software code. These sequences of software code can be, for example, sequences of code that can be directly executed in a programming environment, or simplified representations of sequences of software code (e.g., “pseudo-code”). Accordingly, when the user selects one of the commands depicted in the control portion, the respective sequence of software code is displayed in the first code portion.
In some cases, the computer system can also present a second GUI to the user. The second GUI can include a second game portion visually depicting the game element disposed within the game environment, a second code portion displaying one or more sequences of software code, and a suggestion portion visually displaying one or more suggested sequences of software code. The game element and the environment can be the same as those depicted in the first GUI. As examples, the first GUI can be similar to the user interfaces described with respect to
In some cases, at least some of the suggested sequences of software code are associated with the one or more commands depicted in the control portion of the first GUI. For example, a developer of an education lesson plan may specify that each of the commands depicted in the control portion of the first GUI are associated with a respective sequence of software code. One or more of these same suggestions can be displayed in the suggestion portion on the second GUI.
In some cases, the computer system can execute the one or more sequences software code displayed in the second code portion. As described above, in some cases, executing the one more sequences of software code displayed by the second code portion manipulates the game element within the game environment. For example, as described above, the sequences of software code can be commands to reorient the game element, change a position of the game element, rotate the game element, and/or otherwise manipulate the game element within the game environment.
In some cases, the computer system can allow the user to edit the contents of the second code portion. For example, the user can insert, revise, and/or delete sequences of software code contained within the second code portion (e.g., by inputting characters, performing touch-based gestures, selecting input suggestions, so forth).
In some cases, the second code portion can present several sequences of software code to the user, but only allow the user to revise particular portions of the code. For example, as described above with respect to
In some cases, the second GUI can present one or more hints to the user for interacting with the second GUI. For example, the second GUI can present a hint that identifies one or more suggested sequences of software code to the user, or a hint that describes an effect of one or more suggested sequences of software code to the user.
In some cases, the computer system can also present a third GUI for presenting information regarding a user's progress through the lesson plan. As described above, the third GUI can include one or more node elements, and one or more connective elements connecting the node elements. Each of the node elements can be associated with a lesson plan presented by the first GUI and the second GUI. In some cases, at least two of the node elements are associated with a lesson plan presented by the first GUI and the second GUI, and are arranged according to a sequence defined by the lesson plan As an example, the third GUI can be similar to the user interface described with respect to
Each node element indicates the user's progress through a respective educational lesson. For example, in some cases, a shaded node element indicates that the user has completed a respective education lesson. As another example, in some cases, a partially shaded node element indicates that the user has partially completed a respective education lesson. In some cases, a proportion of the shaded node element that is shaded can correspond to a proportion of a respective education lesson that has been completed by the user. The note elements can be hierarchically arranged, or arranged according to a particular linear or branching path.
Sensors, devices, and subsystems may be coupled to peripherals interface 2206 to facilitate multiple functionalities. For example, motion sensor 2210, light sensor 2212, and proximity sensor 2214 may be coupled to peripherals interface 2206 to facilitate orientation, lighting, and proximity functions of the device. For example, in some implementations, light sensor 2212 may be utilized to facilitate adjusting the brightness of touch surface 546. In some implementations, motion sensor 2210 (e.g., an accelerometer, gyros) may be utilized to detect movement and orientation of the device. Accordingly, display objects or media may be presented according to a detected orientation (e.g., portrait or landscape).
Other sensors may also be connected to peripherals interface 2206, such as a temperature sensor, a biometric sensor, or other sensing device, to facilitate related functionalities.
Location processor 2215 (e.g., GNSS receiver chip) may be connected to peripherals interface 2206 to provide geo-referencing. Electronic magnetometer 2216 (e.g., an integrated circuit chip) may also be connected to peripherals interface 2206 to provide data that may be used to determine the direction of magnetic North. Thus, electronic magnetometer 2216 may be used as an electronic compass.
Camera subsystem 2220 and an optical sensor 2222, e.g., a charged coupled device (CCD) or a complementary metal-oxide semiconductor (CMOS) optical sensor, may be utilized to facilitate camera functions, such as recording photographs and video clips.
Communication functions may be facilitated through one or more communication subsystems 2224. Communication subsystem(s) 2224 may include one or more wireless communication subsystems. Wireless communication subsystems 2224 may include radio frequency receivers and transmitters and/or optical (e.g., infrared) receivers and transmitters. Wired communication system may include a port device, e.g., a Universal Serial Bus (USB) port or some other wired port connection that may be used to establish a wired connection to other computing devices, such as other communication devices, network access devices, a personal computer, a printer, a display screen, or other processing devices capable of receiving or transmitting data.
The specific design and implementation of the communication subsystem 2224 may depend on the communication network(s) or medium(s) over which the device is intended to operate. For example, a device may include wireless communication subsystems designed to operate over a global system for mobile communications (GSM) network, a GPRS network, an enhanced data GSM environment (EDGE) network, 802.x communication networks (e.g., Wi-Fi, Wi-Max), code division multiple access (CDMA) networks, NFC and a Bluetooth™ network. Wireless communication subsystems 2224 may include hosting protocols such that the device may be configured as a base station for other wireless devices. As another example, the communication subsystems may allow the device to synchronize with a host device using one or more protocols, such as, for example, the TCP/IP protocol, HTTP protocol, UDP protocol, and any other known protocol.
Audio subsystem 2226 may be coupled to a speaker 2228 and one or more microphones 2230 to facilitate voice-enabled functions, such as voice recognition, voice replication, digital recording, and telephony functions.
I/O subsystem 2240 may include touch controller 2242 and/or other input controller(s) 2244. Touch controller 2242 may be coupled to a touch surface 2246. Touch surface 2246 and touch controller 2242 may, for example, detect contact and movement or break thereof using any of a number of touch sensitivity technologies, including but not limited to capacitive, resistive, infrared, and surface acoustic wave technologies, as well as other proximity sensor arrays or other elements for determining one or more points of contact with touch surface 546. In one implementation, touch surface 2246 may display virtual or soft buttons and a virtual keyboard, which may be used as an input/output device by the user.
Other input controller(s) 2244 may be coupled to other input/control devices 2248, such as one or more buttons, rocker switches, thumb-wheel, infrared port, USB port, and/or a pointer device such as a stylus. The one or more buttons (not shown) may include an up/down button for volume control of speaker 2228 and/or microphone 2230.
In some implementations, device 2200 may present recorded audio and/or video files, such as MP3, AAC, and MPEG video files. In some implementations, device 2200 may include the functionality of an MP3 player and may include a pin connector for tethering to other devices. Other input/output and control devices may be used.
Memory interface 2202 may be coupled to memory 2250. Memory 2250 may include high-speed random access memory or non-volatile memory, such as one or more magnetic disk storage devices, one or more optical storage devices, or flash memory (e.g., NAND, NOR). Memory 2250 may store operating system 2252, such as Darwin, RTXC, LINUX, UNIX, OS X, WINDOWS, or an embedded operating system such as VxWorks. Operating system 2252 may include instructions for handling basic system services and for performing hardware dependent tasks. In some implementations, operating system 2252 may include a kernel (e.g., UNIX kernel).
Memory 2250 may also store communication instructions 2254 to facilitate communicating with one or more additional devices, one or more computers or servers, including peer-to-peer communications. Communication instructions 2254 may also be used to select an operational mode or communication medium for use by the device, based on a geographic location (obtained by the GPS/Navigation instructions 2268) of the device. Memory 2250 may include graphical user interface instructions 2256 to facilitate graphic user interface processing, including a touch model for interpreting touch inputs and gestures; sensor processing instructions 2258 to facilitate sensor-related processing and functions; phone instructions 2260 to facilitate phone-related processes and functions; electronic messaging instructions 2262 to facilitate electronic-messaging related processes and functions; web browsing instructions 2264 to facilitate web browsing-related processes and functions; media processing instructions 2266 to facilitate media processing-related processes and functions; GPS/Navigation instructions 2268 to facilitate GPS and navigation-related processes; camera instructions 2270 to facilitate camera-related processes and functions; and other instructions 2272 for performing some or all of the processes, as described in reference to
Each of the above identified instructions and applications may correspond to a set of instructions for performing one or more functions described above. These instructions need not be implemented as separate software programs, procedures, or modules. Memory 2250 may include additional instructions or fewer instructions. Furthermore, various functions of the device may be implemented in hardware and/or in software, including in one or more signal processing and/or application specific integrated circuits (ASICs).
The term “non-transitory computer-readable medium” refers to any medium that participates in providing instructions to processor 2302 for execution, including without limitation, non-volatile media (e.g., optical or magnetic disks) and volatile media (e.g., memory).
Computer-readable mediums 2312b or memory 2312a can further include operating system 2314 (e.g., Mac OS® server, Windows® NT server), network communication module 2316 and content management/server module 618. Operating system 2314 can be multi-user, multiprocessing, multitasking, multithreading, real time, etc. Operating system 2314 performs basic tasks, including but not limited to: recognizing input from input devices 2308 and providing output to output devices 2304; keeping track and managing files and directories on storage devices 2312b and memory 2312a; controlling peripheral devices; and managing traffic on the one or more communication channels 2310. Network communications module 2316 includes various components for establishing and maintaining network connections (e.g., software for implementing communication protocols, such as TCP/IP, HTTP, etc.). Content management/server module 2318 manages content stored in computer-readable mediums 2312b and downloads content to requesting client devices, such as client devices 104a-c described in reference to
Architecture 2300 can be included in any computer device, including one or more server computers each having one or more processing cores. Architecture 2300 can be implemented in a parallel processing or peer-to-peer infrastructure or on a single device with one or more processors. Software can include multiple software components or can be a single body of code.
The features described may be implemented in digital electronic circuitry or in computer hardware, firmware, software, or in combinations of them. The features may be implemented in a computer program product tangibly embodied in an information carrier, e.g., in a machine-readable storage device, for execution by a programmable processor; and method steps may be performed by a programmable processor executing a program of instructions to perform functions of the described implementations by operating on input data and generating output.
The described features may be implemented advantageously in one or more computer programs that are executable on a programmable system including at least one programmable processor coupled to receive data and instructions from, and to transmit data and instructions to, a data storage system, at least one input device, and at least one output device. A computer program is a set of instructions that may be used, directly or indirectly, in a computer to perform a certain activity or bring about a certain result. A computer program may be written in any form of programming language (e.g., Objective-C, Java), including compiled or interpreted languages, and it may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
Suitable processors for the execution of a program of instructions include, by way of example, both general and special purpose microprocessors, and the sole processor or one of multiple processors or cores, of any kind of computer. Generally, a processor will receive instructions and data from a read-only memory or a random access memory or both. The essential elements of a computer are a processor for executing instructions and one or more memories for storing instructions and data. Generally, a computer may communicate with mass storage devices for storing data files. These mass storage devices may include magnetic disks, such as internal hard disks and removable disks; magneto-optical disks; and optical disks. Storage devices suitable for tangibly embodying computer program instructions and data include all forms of non-volatile memory, including by way of example semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM and DVD-ROM disks. The processor and the memory may be supplemented by, or incorporated in, ASICs (application-specific integrated circuits).
To provide for interaction with a user the features may be implemented on a computer having a display device such as a CRT (cathode ray tube) or LCD (liquid crystal display) monitor for displaying information to the author and a keyboard and a pointing device such as a mouse or a trackball by which the author may provide input to the computer.
The features may be implemented in a computer system that includes a back-end component, such as a data server or that includes a middleware component, such as an application server or an Internet server, or that includes a front-end component, such as a client computer having a graphical user interface or an Internet browser, or any combination of them. The components of the system may be connected by any form or medium of digital data communication such as a communication network. Examples of communication networks include a LAN, a WAN and the computers and networks forming the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
One or more features or steps of the disclosed embodiments may be implemented using an Application Programming Interface (API). An API may define on or more parameters that are passed between a calling application and other software code (e.g., an operating system, library routine, function) that provides a service, that provides data, or that performs an operation or a computation.
The API may be implemented as one or more calls in program code that send or receive one or more parameters through a parameter list or other structure based on a call convention defined in an API specification document. A parameter may be a constant, a key, a data structure, an object, an object class, a variable, a data type, a pointer, an array, a list, or another call. API calls and parameters may be implemented in any programming language. The programming language may define the vocabulary and calling convention that a programmer will employ to access functions supporting the API.
In some implementations, an API call may report to an application the capabilities of a device running the application, such as input capability, output capability, processing capability, power capability, communications capability, etc.
As described above, some aspects of the subject matter of this specification include gathering and use of data available from various sources to improve services a mobile device can provide to a user. The present disclosure contemplates that in some instances, this gathered data may identify a particular location or an address based on device usage. Such personal information data can include location-based data, addresses, subscriber account identifiers, or other identifying information.
The present disclosure further contemplates that the entities responsible for the collection, analysis, disclosure, transfer, storage, or other use of such personal information data will comply with well-established privacy policies and/or privacy practices. In particular, such entities should implement and consistently use privacy policies and practices that are generally recognized as meeting or exceeding industry or governmental requirements for maintaining personal information data private and secure. For example, personal information from users should be collected for legitimate and reasonable uses of the entity and not shared or sold outside of those legitimate uses. Further, such collection should occur only after receiving the informed consent of the users. Additionally, such entities would take any needed steps for safeguarding and securing access to such personal information data and ensuring that others with access to the personal information data adhere to their privacy policies and procedures. Further, such entities can subject themselves to evaluation by third parties to certify their adherence to widely accepted privacy policies and practices.
In the case of advertisement delivery services, the present disclosure also contemplates embodiments in which users selectively block the use of, or access to, personal information data. That is, the present disclosure contemplates that hardware and/or software elements can be provided to prevent or block access to such personal information data. For example, in the case of advertisement delivery services, the present technology can be configured to allow users to select to “opt in” or “opt out” of participation in the collection of personal information data during registration for services.
Therefore, although the present disclosure broadly covers use of personal information data to implement one or more various disclosed embodiments, the present disclosure also contemplates that the various embodiments can also be implemented without the need for accessing such personal information data. That is, the various embodiments of the present technology are not rendered inoperable due to the lack of all or a portion of such personal information data. For example, content can be selected and delivered to users by inferring preferences based on non-personal information data or a bare minimum amount of personal information, such as the content being requested by the device associated with a user, other non-personal information available to the content delivery services, or publically available information.
A number of implementations have been described. Nevertheless, it will be understood that various modifications may be made. Elements of one or more implementations may be combined, deleted, modified, or supplemented to form further implementations. As yet another example, the logic flows depicted in the figures do not require the particular order shown, or sequential order, to achieve desirable results. In addition, other steps may be provided, or steps may be eliminated, from the described flows, and other components may be added to, or removed from, the described systems. Accordingly, other implementations are within the scope of the following claims.
This application is a non-provisional of and claims priority to U.S. Provisional Patent Application No. 62/171,992, filed on Jun. 5, 2015, the entire contents of which are hereby incorporated by reference.
Number | Date | Country | |
---|---|---|---|
62171992 | Jun 2015 | US |