RockPaperBasicsv1

RockPaperBasicsv1 preview image

1 collaborator

Default-person Pradeep Ankem (Author)

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by everyone
Model was written in NetLogo 6.2.1 • Viewed 73 times • Downloaded 23 times • Run 0 times
Download the 'RockPaperBasicsv1' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)


Comments and Questions

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

breed [papers paper]
breed [rocks rock]
breed [scissors scissor]

to setup
  clear-all
  reset-ticks
  create-rocks 10 [
    setxy random-xcor random-ycor
    ;set pen-mode "down"
    ;;set label "✂"
    set size 2
    set shape "rock"
    ;set shape one-of ["paper" "scissors" "rock"]
    set color 5
  ]
   create-papers 10 [
    setxy random-xcor random-ycor
    ;set pen-mode "down"
    ;;set label "✂"
    set size 2
    set shape "paper"
    ;set shape one-of ["paper" "scissors" "rock"]
    set color 5
  ]
create-scissors 10 [
    setxy random-xcor random-ycor
    ;set pen-mode "down"
    ;;set label "✂"
    set size 2
    set shape "scissors"
    ;set shape one-of ["paper" "scissors" "rock"]
    set color 5
  ]
end 

to go
 ; ask turtles [
  ;  ifelse random 2 = 0 [
      ; move up
     ; set ycor ycor + 1
   ; ]
    ;[
      ; move down
     ; set ycor ycor - 1
    ;]
  ;]

 ; paper > rock
 ; rock > scissors
 ; scissors > rock

  ask rocks [
    right random 90
    left random 90
    forward 0.1
  ]

   ask papers [
    right random 90
    left random 90
    forward 0.1
  ]
   ask scissors [
    right random 90
    left random 90
    forward 0.1
  ]
  ask papers [
   ask rocks-here [
     set color grey
     set shape "paper"
  ]]

   ask rocks [
   ask scissors-here [
     set color grey
     set shape "rock"
    ]]
    ask scissors [
   ask papers-here [
     set color grey
     set shape "scissors"
      ]]
;



 tick
end 

There are 5 versions of this model.

Uploaded by When Description Download
Pradeep Ankem over 1 year ago .. Download this version
Pradeep Ankem over 1 year ago final Download this version
Pradeep Ankem over 1 year ago final Download this version
Pradeep Ankem over 1 year ago new one Download this version
Pradeep Ankem over 1 year ago Initial upload Download this version

Attached files

File Type Description Last updated
RockPaperBasicsv1.png preview Preview for 'RockPaperBasicsv1' over 1 year ago, by Pradeep Ankem Download

This model does not have any ancestors.

This model does not have any descendants.