Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let label = gets();
- let rank = +gets();
- if(label==='a' || label==='c'|| label==='e'|| label==='g')
- {
- if(rank % 2===0)
- {
- print('light');
- }
- else
- {
- print('dark');
- }
- }
- else if(label==='b'|| label==='d'|| label==='f'|| label==='h')
- {
- if(rank % 2===0)
- {
- print('dark')
- }
- else
- {
- print('light');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement