getInputPlayerName<-function(Nb){
if(Nb %in% c(1,2)){
if(Nb==1)Play<-"one"
if(Nb==2)Play<-"two"
c<-readline(prompt = paste0("Name of player ",Play,": "))
c<-as.character(c)
return(c)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.