oTree Forum >

self vs player

#1 by tamUbe

what is the difference between player.in_round and self.in_round?
when do I use self and when do I use player in the _int_ file?
Thank you

#2 by Chris_oTree

You should not use 'self' at all. 'self' is from an old version of oTree. The new code format is called the "no-self" format. More info here: https://www.otree.org/newformat.html

Write a reply

Set forum username