# [Python 2], <s>97</s> <s>95</s> <s>75</s> 72 bytes

<!-- language-all: lang-python -->

    lambda a,b:(-1<a<=b<22or 0<a>=b-2<b<31>a+1)and(20<b-(b<30)>a)+(a<20<b)+1

[Try it online!][TIO-jtpz2q3u]

[Python 2]: https://docs.python.org/2/
[TIO-jtpz2q3u]: https://tio.run/##jZZPa@tGFMX3@RTaxSY26Nz5I83DCRTeWxRKl92kWcg4Tg2pE9JQeJ8@le85E9nqK3Qz4Sqe87uS7jma1@/vf7wc7WN/@/vH8/Dndjc0w2r7ZbHGZtjcbjdmL29Nuxnubrdr22w3AXfDDZbDcbewdrNdL8ZL7fJuWN4shs3pyvIGH69vh@N7c/338HzYNY/H3ePuy/UVL@4XTbtqDMvPGnZZG8Y6nNX9qhkRU11YX11QDsfm9Xn4PuM0Z/uc215yYTPuvA@bOIejk84I69NPUKYta5RLjWZ9@sXsXm12L2f/D@3lvcbx9/HsWaB1ZHti8OLVbz/98vPX2/v7dtU@rMYVvpqvwdfoa/I1@9r52vtauEubuRvcDu4HBUAFUALUAEVAFaOKnVSw4mq@Bl@jr8nX7Gvna@9r4a6Wf6TB7eB@UABUACVADVAEVDGqeCfmPZj3YN6DeQ/mPZj3YN6DeQ/GHow9GHsw9mDswdiDsQdjD8YejD0YezD2EJwenB6cHpwenB6cHpweSA@kB9ID6YH0QHogPZAeSA@kB9ID6dG50bnRudG50bnRuZHcSG4kN5IbyY3kRnIjuZHcSG4kN5KbnJicmJyYnJicmEhMJCYSE4mJxERiIjGRmEhMJCYSE4nZWdlZ2VnZWZmsTFYmK5OVycpkZbIyWZmsTFYmK5PVOaVzSueUjpSOlI6UjpSOlI6UjpSOlI6UjpSOlI6U3vV71@@p31O/p35P/Z76PfV76vfU76nfU7@nfk/94sqFyoXKhcqFyoXKhcqFyoXKhcqFyoXKRQmgWIFyBQoWKFmgaIGyBQoXKF2geIHyBQoY1ISpKVFjouZEDYqaFDUqalbUsKhpUeNCeQFZHvI8ZHrI9ZDtId9DxoecD1kf8j7kXsi@kH8hA0MOhiwMeRgyMeRiyIaQDyEjQk6ErAh5ETIj5EbITZCdID9BhoIcBVkK8hRkCcgTkCkgV0C2gHwBTTU01tBcQ4MNTTY0ltBcQoMJTSY0VdBYQXNlmgNrp9ojuuY9ptoz21TbVHuIB9Vhqj3Vo@o41R7zSXWaas/9rDpPtX8IOtXdVPuXoVfdf9bB76eoLqf64erq269fv/HTri9q/ZzhPNqVtIo/JZOiQw6vdqy2qWNex7OOVx2T@trr66yvq76Wfz32@WOdP7b5Y5ndNm/3/Dz3ecr66/F9sV@MR9LlfjyIjn9PJz0/89RT0fXlAfOHG/xJfm54ejkcn/4HoTnsm/vxwkNzfHk/k/mvE@FM6bTjbTg@PS7WaTx/tcvmdHk7XR784hzCm/v4Bw "Python 2 – Try It Online"

Takes input as pre-ordered `a,b`.

Returns `2`, `1`, `False` for `ended`, `in play`, `invalid`.