Package: karel 0.1.1.9001

Marcos Prunello

karel: Learning programming with Karel the robot

This is the R implementation of Karel the robot, a programming language created by Dr. R. E. Pattis at Stanford University in 1981. Karel is an useful tool to teach introductory concepts about general programming, such as algorithmic decomposition, conditional statements, loops, etc., in an interactive and fun way, by writing programs to make Karel the robot achieve certain tasks in the world she lives in. Originally based on Pascal, Karel was implemented in many languages through these decades, including 'Java', 'C++', 'Ruby' and 'Python'. This is the first package implementing Karel in R.

Authors:Marcos Prunello [aut, cre, cph]

karel_0.1.1.9001.tar.gz
karel_0.1.1.9001.zip(r-4.7)karel_0.1.1.9001.zip(r-4.6)karel_0.1.1.9001.zip(r-4.5)
karel_0.1.1.9001.tgz(r-4.6-any)karel_0.1.1.9001.tgz(r-4.5-any)
karel_0.1.1.9001.tar.gz(r-4.7-any)karel_0.1.1.9001.tar.gz(r-4.6-any)
karel_0.1.1.9001.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
karel/json (API)

# Install 'karel' in R:
install.packages('karel', repos = c('https://ropensci.r-universe.dev', 'https://cloud.r-project.org'))

Reviews:rOpenSci Software Review #620

Bug tracker:https://github.com/ropensci/karel/issues

Pkgdown/docs site:https://ropensci.github.io

On CRAN:

Conda:

learningprogrammingr-language

5.46 score 11 stars 44 scripts 80 downloads 46 exports 49 dependencies

Last updated from:439aa6d0ff (on master). Checks:10 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK175
pkgdown docsOK201
source / vignettesOK199
linux-release-x86_64OK175
macos-release-arm64OK120
macos-oldrel-arm64OK139
windows-develOK135
windows-releaseOK114
windows-oldrelOK124
wasm-releaseOK128

Exports:avanzarbeepers_presentcargar_super_kareldarse_vueltaderecha_abiertoderecha_cerradoejecutar_accionesfacing_eastfacing_northfacing_southfacing_westfrente_abiertofrente_cerradofront_is_blockedfront_is_cleargenerar_mundogenerate_worldgirar_derechagirar_izquierdahay_cososizquierda_abiertoizquierda_cerradojuntar_cosokarel_has_beeperskarel_has_no_beeperskarel_no_tiene_cososkarel_tiene_cososleft_is_blockedleft_is_clearload_super_karelmira_al_estemira_al_nortemira_al_oestemira_al_surmoveno_beepers_presentno_hay_cosospick_beeperponer_cosoput_beeperright_is_blockedright_is_clearrun_actionsturn_aroundturn_leftturn_right

Dependencies:classclassIntclicpp11crayonDBIdplyre1071farvergenericsgganimateggplot2gluegtablehmsisobandKernSmoothlabelinglifecyclelpSolvemagrittrMASSpillarpkgconfigprettyunitsprogressproxypurrrR6RColorBrewerRcpprlangs2S7scalessfstringistringrtibbletidyrtidyselecttransformrtweenrunitsutf8vctrsviridisLitewithrwk

1 - Introducción y nociones básicas
Algunas ideas sobre Programación | Problemas, algoritmos y lenguajes de programación | El diseño algorítmico | Codificación | Errores de programación | Procesador, ambiente y acciones | R y RStudio | Organización de RStudio | Uso de la consola | Diseño del sistema R

Last update: 2024-07-27
Started: 2021-08-08

1 - Introduction and programming basics
Some Ideas about Programming | Problems, algorithms, and programming languages | Algorithmic Design | Coding | Programming Errors | Processor, Environment, and Actions | R and RStudio | Organization of RStudio | Using the Console | R System Design

Last update: 2024-07-27
Started: 2023-06-14

2 - Meeting Karel

Last update: 2024-04-24
Started: 2023-06-14

3 - Algorithmic decomposition
Turning right | Karel's superpowers | Filling the hole | Documentation of subalgorithms

Last update: 2024-04-24
Started: 2023-06-16

Get started with Karel the robot
Who is Karel? | Installation | Examples

Last update: 2024-04-24
Started: 2023-06-15

2 - Conociendo a Karel

Last update: 2024-03-27
Started: 2021-08-08

3 - Descomposición algorítmica
Girar a la derecha | Los superpoderes de Karel | Llenar el agujero | Documentación de los subalgoritmos

Last update: 2024-03-27
Started: 2021-08-08

4 - Control structures
Sequential Control Structures | Conditional Control Structures | Simple Conditional Structures | Double Conditional Structures | Multiple or Nested Conditional Structures | Iterative Control Structures | Iterative Control Structures with a Fixed Number of Iterations | Iterative Control Structures with an Indeterminate Number of Iterations

Last update: 2024-03-27
Started: 2023-06-16

4 - Estructuras de control del código
Estructuras de control secuenciales | Estructuras de control condicionales | Estructuras condicionales simples | Estructuras condicionales dobles | Estructuras condicionales múltiples o anidadas | Estructuras de control iterativas | Estructuras de control iterativas con un número fijo de iteraciones | Estructuras de control iterativas con un número indeterminado de iteraciones

Last update: 2024-03-27
Started: 2021-08-08

5 - Examples
Fixing the street again | Create other functions that make Karel even more powerful | Collect columns of beepers | The Maze | More Problems | Problem 1: Collecting the newspaper | Problem 2: Going around the house | Problem 3: Creating a line of beepers | Problem 4: Jumping over sticks | Problem 5: Cleaning the World | Problem 6: Placing beepers in the vertices of the diamond | Problem 7: Doubling the number of beepers | Problem 8: Repairing columns

Last update: 2024-03-27
Started: 2023-06-16

5 - Varios problemas de ejemplo
Otra vez a reparar la calle | Crear otras funciones que hagan de Karel aún más poderosa | Recoger columnas de cosos | El laberinto | Más problemas | Problema 1: juntar el periódico | Problema 2: dar vueltas a la casa | Problema 3: crear línea de cosos | Problema 4: saltar los palotes | Problema 5: limpiar el mundo | Problema 6: poner cosos en los vértices del rombo | Problema 7: duplicar el número de cosos | Problema 8: reparar columnas

Last update: 2024-03-27
Started: 2021-08-08

Primeros pasos con la robot Karel
¿Quién es Karel? | Instalación | Ejemplos

Last update: 2024-03-27
Started: 2023-06-15

Readme and manuals

Help Manual

Help pageTopics
Acciones que Karel puede realizaracciones avanzar darse_vuelta girar_derecha girar_izquierda juntar_coso poner_coso
Available actions for Karelactions move pick_beeper put_beeper turn_around turn_left turn_right
Habilitar los superpoderes de Karelcargar_super_karel
Condiciones que Karel puede verificarcondiciones derecha_abierto derecha_cerrado frente_abierto frente_cerrado hay_cosos izquierda_abierto izquierda_cerrado karel_no_tiene_cosos karel_tiene_cosos mira_al_este mira_al_norte mira_al_oeste mira_al_sur no_hay_cosos
Conditions that Karel can testbeepers_present conditions facing_east facing_north facing_south facing_west front_is_blocked front_is_clear karel_has_beepers karel_has_no_beepers left_is_blocked left_is_clear no_beepers_present right_is_blocked right_is_clear
Obtener el ambiente de Karelconseguir_amb
Ejecutar accionesejecutar_acciones
Generar el mundo de Karelgenerar_mundo
Create Karel's worldgenerate_world
Get Karel's environmentget_pkg_env
Producir un gráfico del mundo de Karel en un momento dadograficar_mundo_estatico
Turn on Karel's superpowersload_super_karel
Plot the world at a given timeplot_static_world
Run actionsrun_actions