Imagine you made a game in BGT programming language, and you thought you’d have a question.
What if I convert this project to Python programming language?
Is that impossible?
After I found this script, I answered this question that it is not impossible, and it is beautiful and it does a great job.
How does this script work?
1 Download the Script .
2 paste this Script in the project folder.
3 Open it
it will ask you for the address of the file
Here, paste the file path and click enter.
And you will find that there are two files from this project.
let’s take an example.
We converted the master.bgt file
Another file, named master.py will appear.
And that’s where our explanation of this script ends.
Download the Script from here.
We wish you dear visitor to put your opinion about this Script on comments
Category: Programming lessons
Welcome to this section which contains lessons that may be useful for you to learn programming
Welcome to this new post which we will put this code that welcomes your website visitors according to time.
What’s the point of it?
Honestly, I liked the category of these codes because they beautify the site so much, that’s why I designed this model to put it on top of the blog.
Code
Please copy the code correctly and place it in position without modification.
var welcome;
var date = new Date();
var hour = date.getHours();
var minute = date.getMinutes();
var second = date.getSeconds();
if (minute < 10) {
minute = "0" + minute;
}
if (second < 10) {
second = "0" + second;
}
if (hour < 12) {
welcome = "good morning";
18. } else if (hour < 17) {
welcome = "good afternoon";
} else {
welcome = "good evening";
}
document.write("