This was a science fiction game that I would have bought (and my mother has since thrown away) sometime in the late seventies or possibly early eighties. I believe it came in a bag (there were a series of games like that back then, I don't know if they still exist). The basic game concept was that you were at war, and your 'soldiers' were all of these little bots. Each bot had a concept (slow moving and heavy, could jump, could fly, etc.) but they also did a kind of rock-paper-scissors thing: Bot A was good at killing Bot B, Bot B could trash Bot C; and Bot C could eat Bot A for lunch... etc. The idea was you had these factories turning out these bots and you had to manage the right kind of production to kill your enemies, make new factories, etc.
Sounds like "Rivets", one of Metagaming's Microgames.
They indeed came in a bag, the manual was like 4x6 inches.
I remember playing Rivets but not too many details.
There is a cover pic here
As well as more info:
Rivets is a tactical level science fiction game of robotical warfare in the 22nd century. The players choose their robot armies, program them, and maneuver them to destroy the computer complex that controls the enemy's robots.
Game components include this rulebook, an 8 1/4" by 14' game map, and 118 counters"