Bulls and Cows (also known as Cows and Bulls or Pigs and Bulls) is an old code-breaking mind or paper and pencil game for two or more players, predating the commercially marketed board game Mastermind.
It is a game that may date back a century or more which uses numbers or words. It is played by two opponents.
Let’s play now. you can just type any number in the box, and it will tell you XAXB, A means you get the right position of the right number, B means you get the right number but not right position.