In the beginning https://diep.io/
So basically you have type your nickname (not real name) in the square and then press play or enter then you’ll spawn in a random game. If you want to play in the same server as your friend, you have to press “copy party link” on the top right corner. Ctrl + v in a message to your friend then they Ctrl + c then hop to new tab and Ctrl + v and press enter then he’s in the same server.
Playing in diep.io
When you press play or enter you have to shoot at the yellow squares, red triangles and the purple pentagons. If you kill a tank, you get like about 50% of there score. If you get lots of score, you’ll be on the leader board. The leader board is the top ten highest score players on it and usually people will hunt the top dude on the leader board and kill the dude and get all the score. it’s really hard to get top because you’ll just get killed.
Game modes
So on the top right theirs your region but on the left theirs your game mode, you can choose FFA which is just a large square as the map and get top leader board. Next is survival which is FFA but if you die, you’ll respawn in a different server. after that is 2 teams which your going to red team or blue team and your team needs to have the leader board full of your colour and you basically win. Next off the list is 4 teams which is basically 2 teams but theirs red, blue, purple and green. So this one is domination which is 2 teams but there is no leader board, theirs 4 yellow like bosses which will be a spike thing which produce spikes, or a gunner which I’ll explain later. If your team destroys a yellow tank, it will become your team’s colour, but if your opponent’s team destroys that tank, it will become yellow so they can take over. If your team takes over every of the yellow tanks, you win and arena closers will come and kill everyone and you can press “h” to cotrol a boss like tank. Next is tag which is 4 teams but there is no leader board and if an member of your team kills another team tank, they enter your team and they kill someone and it just goes on and i think you will be forced to enter a team that has no one in it. After is maze which is well FFA but theirs big blocks that is a maze. The last is sandbox which i’ll explain in the next paragraph cause this is going far to long.
Sandbox
So this mode has alot, so it’s just a small box for you to test tanks and if you press “copy party link” you can invite your friend and have a 1v1 to get better at the game. If you hold “k” you will level up instantly to level 45. If you press “;:” this key, it toggles god mode on which you can only use when 1 player is in sandbox. If you press “|” it switches your tank to another. And “o” is to kill yourself. All of these abilities are only allowed in sandbox difficulty, if you try these on another difficulty, it won’t work 
Extra stuff you need to know
There are stuff you need to know like the “Arena Closers” and in domination difficulty, the big tanks that you capture can only be a gunner, spike guy, or a destroyer. usually people go for the centre of the map because their are so so many pentagons there but also pink triangle ai’s that will attack whoever tries attempting to get the pentagons, they will also give you a little XP. e to auto fire and c to auto spin, 1 2 3 4 5 6 7 and 8 to upgrade your tank with points on the bottom left. M to future upgrade. Most pro’s use the “Overlord” because it is (i believe from my diep.io knowledge) the strongest tank in the game. There will also be achievements. There are also bosses, there are 5 in total. The first boss is the “guardians of the pentagons”, it will spawn in the centre to protect all the pentagons. It is a giant pink triangle and shoots small pink triangles out of its butt, it rams and does lots of damage to players and things. The next boss is the “Summoner”, it is a big yellow square with cannons all on four sides. The cannon fires squares that the ai will control. Next is the “Guardian” NOT finished yet someone just wanted it released!