javascript – What’s a very fast and simple way to create a multiplayer online text-based game?

I’m working on a multiplayer online game and I need to know which tools to use and how to use them to accomplish certain tasks. The project is about creating sustainable multiparty agreements between organizations of various capacities. I’m not a web developer or game designer, and I have only minimal experience with Python. Recently, I’ve tried experimenting with GameMaker Studio 2, Godot, and simply learning JavaScript.

In the game, 20 players play 20 rounds. Each round has two parts: the action phase, in which players perform a number of actions, and the survey phase, in which players may choose to answer various questions about other players. Players should create a number of inputs, the dashboard must be updated automatically, and outputs must then be visible to all other players.

The game must incorporate these features:

  1. A public scoreboard/dashboard which reflects changes players make to existing agreements and the numeric values of those agreements in real time
  • Players may propose new agreements, withdraw from or oppose existing agreements
  • The values of agreements are calculated by a simple formula
  • Players take their actions simultaneously
  • The results of players’ actions are visible on the dashboard at the end of each Action Phase
  1. Selective access to information
  • Some players will have access to more information than other players
  • Players should be able to give and receive information from select players
  • Some information will be hidden from all players
  • Automated calculations (literally nothing more complicated than an exponent)
  • These calculations must also update in real time to reflect changes players make

The flow of the game:

  • Players expend limited resources to take a desired number of actions in the Action Phase
  • The results of these actions are visible to all players at the end of the Action Phase
  • Players may choose to expend limited resources to participate in one or more surveys
  • The results of these surveys are visible to all participating players at the end of the Survey Phase
  • This process is repeated for 20 rounds, but without a Survey Phase in the final round
  • After the first 20 rounds, there is a 21st round without a Survey Phase

The game essentially must duct tape together a calculator, some surveys, and a scoreboard. What is the best way to go about creating an interactive multiplayer game in the shortest amount of time possible? At this point, the number one priorities are accessibility and functionality. Players should be able to easily access and play this game on their browsers and the game should work well. Please advise on the best possible way to meet these requirements. Thank you!

magento2 – How to add simple text message in checkout page new address form? magento 2

Hi I have been trying to add simple text message in the highlighted section of attached screenshot . I am currently adding the custom text message in

I overrided below file from vendormagentomodule-checkoutviewfrontendlayoutcheckout_index_index.xml


<item name="popUpForm" xsi:type="array">
    <item name="element" xsi:type="string">#opc-new-shipping-address</item>
    <item name="options" xsi:type="array">
        <item name="type" xsi:type="string">popup</item>
        <item name="responsive" xsi:type="boolean">true</item>
        <item name="innerScroll" xsi:type="boolean">true</item>
        <item name="title" xsi:type="string" translate="true">Shipping Address</item>
        <item name="trigger" xsi:type="string">opc-new-shipping-address</item>
        <item name="notice" xsi:type="string" translate="true">Some note here</item>
        <item name="additionalInfo" xsi:type="string">
            <![CDATA[<b>My Html Information</b>]]>
        <item name="text" xsi:type="string" translate="true">Some note here</item>
        <item name="buttons" xsi:type="array">
            <item name="save" xsi:type="array">
                <item name="text" xsi:type="string" translate="true">Save Address</item>
                <item name="class" xsi:type="string">action primary action-save-address</item>
            <item name="cancel" xsi:type="array">
                <item name="text" xsi:type="string" translate="true">Cancel</item>
                <item name="class" xsi:type="string">action secondary action-hide-popup</item>

enter image description here
I am not getting any error’s or warning but the below code in above file did not work. Can anyone please guide me through this it would definitely help me continue my learning of magento 2 concepts and get clear understanding how it works? thanks

<item name="notice" xsi:type="string" translate="true">Some note here</item>
            <item name="additionalInfo" xsi:type="string">
                <![CDATA[<b>My Html Information</b>]]>
            <item name="text" xsi:type="string" translate="true">Some note here</item>

graphs – Can Johnson’s algorithm for simple cycles be modified in order to find only cycles up to length L (but all of them)?

I have a question regarding Johnson’s algorithm for finding all simple cycles in a graph.

I was wondering it is possible to modify the algorithm in order to find only cycles up to a given length.

After having read into the algorithm, my approach would the following:

Assume I want only cycles up to length L.
Then, if the stack has reached height L, if the current node on top of the stack is not a neighbor of the starting node, I treat it as having no neighbors left, i.e. I remove it again from the stack.

I am not deep enough into network theory, however, to be sure that this modification still guarantees me finding all simple cycles (up to length L).

Simple, cheap VPS with US Residential IP to use as proxy

Hey guys,

I’m looking for cheap VPS that comes with a US residential IP that I can install PPTP on and use as a proxy for my home connect… | Read the rest of

object oriented – Simple Pizza Ordering Application in Java

I was inspired by a previous post here that also wrote a pizza ordering application. This is the attempt I have made using OOP in mind as I thought that would be just the way to go.

Here is

import java.util.ArrayList;

public class Pizza {

    private String size;
    private ArrayList<String> toppings;

    public String getSize() {
        return size;

    public void setSize(String size) {
        this.size = size;

    public ArrayList<String> getToppings() {
        return toppings;

    public void setToppings(ArrayList<String> toppings) {
        this.toppings = toppings;

    public String toString() {
        return this.size + " pizza with " + this.getToppings();

Here is

import java.util.ArrayList;

public class PizzaOrder {
    private double totalOrderCost;

    private final ArrayList<Pizza> pizzas;

    public PizzaOrder(ArrayList<Pizza> pizzas) {
        this.pizzas = pizzas;

    public void calculateTotalOrderCost() {
        final double LARGE_COST = 9.99;
        final double MEDIUM_COST = 7.99;
        final double SMALL_COST = 5.99;
        final double COST_PER_TOPPING = 0.5;

        for (Pizza pizza : pizzas) {
            switch (pizza.getSize()) {
                case "Large":
                    totalOrderCost += LARGE_COST;
                case "Medium":
                    totalOrderCost += MEDIUM_COST;
                case "Small":
                    totalOrderCost += SMALL_COST;
                    totalOrderCost += 0.0;

            int totalToppings = pizza.getToppings().size();
            totalOrderCost += totalToppings * COST_PER_TOPPING;

    public double getTotalOrderCost() {
        return totalOrderCost;

    public void printOrderSummary() {
        for (Pizza pizza : pizzas) {
            System.out.println("Ordered a " + pizza.getSize() + " pizza with " +    pizza.getToppings());
        System.out.println("TOTAL ORDER AMOUNT: " + getTotalOrderCost());

Here is the driver of the application

import java.util.Scanner;
import java.util.ArrayList;

public class PizzaOrderDriver {

    public static void printWelcomeMessage() {
        System.out.println("Welcome to the Pizza Order Program!");

    public static void main(String() args) {
        Scanner scanner = new Scanner(;


        ArrayList<Pizza> pizzas = new ArrayList<>();

        System.out.println("Enter the total pizzas you would like to order: ");
        int totalPizzas = scanner.nextInt();

        // Reading input regarding pizza size and pizza toppings
        for (int i = 0; i < totalPizzas; ++i) {
            Pizza pizza = new Pizza();

            ArrayList<String> toppings = new ArrayList<>();

            String pizzaSize;
            System.out.println("Enter the size of the pizza Large, Medium, Small: ");
            pizzaSize =;

            int totalToppings;
            System.out.println("Enter the total amount of toppings on the pizza: ");
            totalToppings = scanner.nextInt();

            for (int j = 0; j < totalToppings; ++j) {
                System.out.println("Enter the topping: ");
                String topping =;


        // Creating PizzaOrder object and relevant information with regards to order
        PizzaOrder order = new PizzaOrder(pizzas);

        // Cleanup

Along with a general review, I would like some ideas on how to extend this even further. I know what I have right now is rather very simple.

Thank you for reviewing my code.

unity – Simple Car Animation Acceleration Too Slow

I am trying to make a very simple car animation where using the arrow keys, I can make a car move around. I am using wheel colliders and some code that goes like this:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Car_My : MonoBehaviour
    public float Motorforce, Steerforce, Brakeforce;
    public WheelCollider FR_L_Wheel, FR_R_Wheel, RE_L_Wheel, RE_R_Wheel;
    // Start is called before the first frame update
    void Start()
    // Update is called once per frame
    void Update()
        float v = Input.GetAxis("Vertical") * Motorforce;
        float h = Input.GetAxis("Horizontal") * Steerforce;
        RE_L_Wheel.motorTorque = v;
        RE_R_Wheel.motorTorque = v;
        FR_L_Wheel.steerAngle = h;
        FR_R_Wheel.steerAngle = h;
            RE_L_Wheel.brakeTorque = Brakeforce;
            RE_R_Wheel.brakeTorque = Brakeforce;
            RE_R_Wheel.brakeTorque = 0;
            RE_L_Wheel.brakeTorque = 0;
        if(Input.GetAxis("Vertical") == 0)
            RE_L_Wheel.brakeTorque = Brakeforce;
            RE_R_Wheel.brakeTorque = Brakeforce;
            RE_R_Wheel.brakeTorque = 0;
            RE_L_Wheel.brakeTorque = 0;

When I do this, the car moves but it accelerates too slowly. I changed all the values but I cannot get it to start at a faster speed. Any help is highly appreciated.

Number of Connected simple graphs with n vertices

Is there a relation between numbers of simple graphs and simple connected graphs on n vertices? After observing n=1,2,3,4…., I noticed that the number of connected graphs is at least half of the total number of simple graphs. How can we prove that?

forms – How to represent speed range values in a simple and efficient way?

I have a task to create a form for administrator of Google Maps Live Traffic Congestion feature. Here’s what needs to be input in the form :

  • Congestion level name and color for the map (green,yellow,red)
  • Road type
  • Speed range value

I attached the task in details as well as the things I did so far.
I would appreciate some feedback on overall form and advice on how to represent speed values since they can’t overlap.

enter image description here
enter image description here theory – Finite simple groups and negative Frobenius-Schur indicator

Let $G$ be a finite group and $pi$ an irreducible complex representation. The Frobenius-Schur indicator of $pi$ is defined as:
$$ nu_2(pi):=frac{1}{|G|} sum_{g in G} chi_{pi}(g^2) $$
with $chi_{pi}$ the character of $pi$. Recall that $nu_2(pi) in {-1, 0,1}$. The only finite simple groups $G$ with $|G|<10^6$ and having an irreducible complex representation $pi$ with $nu_2(pi) = -1$ are $mathrm{PSU}(3,q)$ with $q=3,4,5$.

gap> it:=SimpleGroupsIterator(10,1000000);; for g in it do if -1 in Indicator(CharacterTable(g),2) then Print((g)); fi; od;
( PSU(3,3) )( PSU(3,4) )( PSU(3,5) )  

Question: What are the finite simple groups known to have no irreducible complex representation $pi$ with $nu_2(pi) = -1$?
What are those known to have an irreducible complex representation $pi$ with $nu_2(pi) = -1$?

I am specifically interested in the groups $mathrm{PSL}(2,q)$ for which I ckecked by GAP that for $q<500$, there is no irreducible complex representation $pi$ with $nu_2(pi) = -1$:

gap> for q in (2..500) do if -1 in Indicator(CharacterTable( "PSL", 2, q),2) then Print((q)); fi; od;

So I expect that it is true for all $q$. Is there a proof using the character table (including class type) of $mathrm{PSL}(2,q)$ (see this post)?

database – which table to store data like simple product in Magento2?

Stack Exchange Network

Stack Exchange network consists of 176 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange