play with smartphone.
If possible, how do my friend and i play on my computer from the same place?

yes you can play from the same place using differents accounts and differents computers or smartphones and different nickname sorry i dont speak english!!! i hope you understand me

Go to the menu (the three vertical lines found at the top left)
Then, click on the "play against computer" button (It may look like a microchip if you're using mobile).
Lastly, you go to the AI strength settings (it should look like a gear), where you will see a black or white Computer icon.
Simply click the icon and it should turn the computer to a human opponent, whereas you can play against your friend on the same screen.
Hope this helps! :D
- LM_player

No chessboard here. Maybe it would be best to use two devices, since it doesn't look like it's possible on one device (laptop).

Guys, i have found it!! Just go to the analysis section from the website or type "chess.com/analysis". You are able to play with your friend 1v1 on the same computer, or just practice.

just go to the learn section and click analysis then it will open a chess board and you can play on the same computer
We're here together in the same place.