フィルターのクリア

How to code Usernames and Passwords?

8 ビュー (過去 30 日間)
Kenneth Harp
Kenneth Harp 2017 年 3 月 20 日
回答済み: Rik 2017 年 3 月 22 日
Hello,
I am working on a final project for a coding class using MATLAB. I am trying to create a hangman game and add to it a username and password system to store someone's high score. I am unsure where to start where it concerns the usernames and passwords. This isn't for any level of security, just to keep track.
Thanks!

回答 (1 件)

Rik
Rik 2017 年 3 月 22 日
You could save the usernames and passwords in a (n_users,2) cell, and using ismember to quickly find the entered combination in the database. The cell you could save in .mat. It is not secured at all, but if that's not a problem, you could at least obfuscate the proces based on this.

カテゴリ

Help Center および File ExchangeNumber games についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by