8 kyu
Grasshopper - Terminal game move function
21,038 of 77,663danleavitt0
Description:
Terminal game move function
In this game, the hero moves from left to right. The player rolls the dice and moves the number of spaces indicated by the dice two times.
Create a function for the terminal game that takes the current position of the hero and the roll (1-6) and return the new position.
Example:
move(3, 6) should equal 15
Fundamentals
Similar Kata:
Stats:
Created | Nov 4, 2015 |
Published | Nov 7, 2015 |
Warriors Trained | 99327 |
Total Skips | 7651 |
Total Code Submissions | 106094 |
Total Times Completed | 77663 |
JavaScript Completions | 21038 |
Ruby Completions | 1077 |
CoffeeScript Completions | 69 |
C# Completions | 2796 |
Python Completions | 17713 |
Rust Completions | 1543 |
C++ Completions | 6957 |
Racket Completions | 84 |
Haskell Completions | 364 |
SQL Completions | 7729 |
Shell Completions | 1249 |
Java Completions | 4993 |
Elm Completions | 131 |
TypeScript Completions | 1050 |
Reason Completions | 33 |
R Completions | 332 |
PHP Completions | 1575 |
Julia Completions | 79 |
Elixir Completions | 207 |
Crystal Completions | 47 |
Dart Completions | 1313 |
Factor Completions | 46 |
NASM Completions | 106 |
C Completions | 1594 |
BF Completions | 223 |
Clojure Completions | 290 |
Lua Completions | 494 |
Forth Completions | 87 |
Go Completions | 3030 |
F# Completions | 176 |
CFML Completions | 33 |
Erlang Completions | 135 |
Fortran Completions | 89 |
Groovy Completions | 130 |
Kotlin Completions | 1870 |
Nim Completions | 95 |
Objective-C Completions | 73 |
PowerShell Completions | 554 |
Prolog Completions | 85 |
PureScript Completions | 42 |
Scala Completions | 302 |
Solidity Completions | 662 |
VB Completions | 374 |
Swift Completions | 1912 |
COBOL Completions | 41 |
RISC-V Completions | 25 |
Total Stars | 258 |
% of votes with a positive feedback rating | 84% of 5584 |
Total "Very Satisfied" Votes | 4205 |
Total "Somewhat Satisfied" Votes | 1011 |
Total "Not Satisfied" Votes | 368 |
Total Rank Assessments | 160 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 1 kyu |
Lowest Assessed Rank | 8 kyu |