# equations from the Lying paper
# this is set up for the frogs problem
par n=.5,m=3,e=.2
par bb1=.25,bb2=1.2,f=2,phi=.8
par a=2
# listener 1 payoff
!a1=n
!a2=-f
!a3=bb1
!a4=bb1
!a5=-a/2
!a6=-a
!a7=bb1
!a8=bb1
!da1=a1-a3
!da2=a2-a4
!da5=a5-a7
!da6=a6-a8
# listener 2 payoff
!b1=n
!b2=bb2
!b3=m
!b4=bb2
!b5=-a/2
!b6=bb2
!b7=-a
!b8=bb2
!db1=b1-b2
!db3=b3-b4
!db5=b5-b6
!db7=b7-b8
# signaler payoff
!c1=-e
!c2=-(f*phi+e)
!c3=m-e
!c4=-e
!c5=0
!c6=0
!c7=0
!c8=0
!dc1=c1-c5
!dc2=c2-c6
!dc3=c3-c7
!dc4=c4-c8
####  equations !! ####
r'=r*(1-r)*(dc1*p*q+dc2*p*(1-q)+dc3*q*(1-p)+dc4*(1-p)*(1-q))
p'=p*(1-p)*(da1*r*q+da2*r*(1-q)+da5*(1-r)*q+da6*(1-q)*(1-r))
q'=q*(1-q)*(db1*r*p+db3*r*(1-p)+db5*(1-r)*p+db7*(1-p)*(1-r))
#####  some nice plot parameters
@ axes=3d,xmin=-.1,xmax=1.1,ymin=-.1,ymax=1.1,zmin=-.1,zmax=1.1
@ xlo=-1.45,ylo=-1.75,xhi=1.45,yhi=1.75,xplot=p,yplot=q,zplot=r
@ total=200
init r=1,p=.4,q=.7
done